/* Acrium public site: the one stylesheet every marketing page shares
   (home, about, vs-polsia, audit, error and legal pages).

   The look is ink on warm paper with a single accent: the vermilion from the
   Klio mark. No gradients, glows, blur or glass. The only decoration is the
   Klio triangle (.tri), used sparingly, and a hard offset "stamp" shadow on
   the things you can press.

   Contrast (checked): ink on paper 16:1, ink-2 8.4:1, ink-3 5.2:1; ink text on
   the vermilion button 5.05:1 (white on it would only be 3.6:1, so buttons use
   ink text). Plain --accent is used as text only at display sizes (3.2:1 on
   paper is AA-large); small accent text uses --accent-ink (5.1:1). */

@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces.woff2") format("woff2-variations"),
       url("/static/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/static/fonts/figtree.woff2") format("woff2-variations"),
       url("/static/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:      #F4EFE6;
  --paper-2:    #EAE2D3;
  --card:       #FBF8F2;
  --ink:        #17140F;
  --ink-2:      #4A443B;
  --ink-3:      #6A6257;
  --line:       #D6CCBB;
  --accent:     #E8552D;
  --accent-hi:  #F06A44;
  --accent-ink: #B63A12;
  --on-ink:     #F4EFE6;
  --on-ink-2:   #B9B0A2;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text:    "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --r:    14px;
  --r-sm: 8px;
  --stamp: 4px 4px 0 var(--ink);

  --s1: 8px;
  --s2: 16px;
  --s3: 32px;
  --s4: 64px;
  --section: 112px;
  --gutter: 24px;
  --max: 1160px;
}

@media (max-width: 640px) {
  :root { --section: 72px; --gutter: 16px; }
}

/* ── Base ───────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, .display, .h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display {
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.h2, h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.06;
}
h3 {
  font-size: 24px;
  line-height: 1.2;
}

.lede {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; line-height: 1.5; }
.accent { color: var(--accent); }

/* Section label: the Klio triangle + a short word. Used once per section at
   most, and only where it helps you find your place. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.kicker::before, .tri {
  content: "";
  flex: none;
  display: inline-block;
  width: 0.8em;
  height: 0.7em;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.link {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.link:hover { color: var(--ink); }
.band-ink .link { color: var(--accent); }
.band-ink .link:hover { color: var(--on-ink); }
.band-ink .kicker { color: var(--accent); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.band-ink :focus-visible { outline-color: var(--accent); }

/* ── Layout ─────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }

.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.band-alt { background: var(--paper-2); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink .muted, .band-ink .lede { color: var(--on-ink-2); }
.section.band-alt, .section.band-ink, .section.band-alt + .section, .section.band-ink + .section { border-top: 0; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lede { margin-top: 20px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--stamp);
}
.btn-primary:hover { background: var(--accent-hi); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.band-ink .btn-primary { border-color: var(--accent); box-shadow: 4px 4px 0 var(--on-ink); }
.band-ink .btn-primary:hover { box-shadow: 5px 5px 0 var(--on-ink); }
.band-ink .btn-primary:active { box-shadow: 1px 1px 0 var(--on-ink); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover { background: var(--card); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-sm.btn-primary { box-shadow: 3px 3px 0 var(--ink); }
.btn-sm.btn-primary:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn-block { width: 100%; }

@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .logo-mark, .tri, .kicker::before, .ticks li::before { forced-color-adjust: none; background: CanvasText; }
  .ticks li.no::before { background: GrayText; }
  .brand img { forced-color-adjust: none; }
}
@media (forced-colors: active) and (prefers-color-scheme: dark) {
  .brand img { filter: invert(1); }
}

/* ── Nav ────────────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
}
.nav-links a, .nav-signin {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-links a:hover, .nav-signin:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px -16px rgba(23, 20, 15, 0.35);
}
.nav-menu.open { display: block; }
.nav-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.nav-menu a:last-child { border-bottom: 0; }

@media (max-width: 880px) {
  .nav-links, .nav-signin { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}

/* ── Cards & bits ───────────────────────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.card--stamp {
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 11px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.ticks li.no { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line); }
.ticks li.no::before { background: var(--line); }

/* Integration logos: single-colour brand SVGs, tinted with a mask so they all
   read as one quiet row instead of a rainbow. */
.logo-row {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}
.logo-row li { display: flex; }
.logo-mark {
  display: block;
  width: 26px;
  height: 26px;
  background: var(--ink-3);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-ink);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 26px; max-width: 64ch; color: var(--ink-2); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand p { margin-top: 14px; max-width: 30ch; color: var(--ink-2); }
.footer-heading {
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── Preferences ────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #2A2620; --ink-3: #3D3830; --line: #7D7466; }
}
