/* Fonts are self-hosted: the site makes no third-party requests. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* "Kartoteka" — paper sheet, bottle-green ink, mustard index tabs. Flat, ruled, no gradients. */
:root {
  --paper: #f5f0e6;
  --surface: #fffdf8;
  --ink: #1b2a24;
  --ink-soft: #55605a;
  --line: #d9d0be;
  --green: #1f5c4a;
  --green-dark: #174638;
  --mustard: #e0a526;
  --mustard-ink: #6b4a00;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  /* Faint ruled lines, like a ledger page. */
  background-image: repeating-linear-gradient(to bottom, transparent 0 47px, rgba(27, 42, 36, 0.045) 47px 48px);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-dark);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

.kicker {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

/* ── Header ───────────────────────────────────────────── */
.top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
}
.top__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.top__nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 28px);
  font-size: 15px;
  font-weight: 600;
}
.top__nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 11px 2px;
}
.top__nav a:hover {
  text-decoration: underline;
}
.top__nav .top__nav-cta {
  background: var(--mustard);
  padding: 9px 16px;
  border-radius: 0 0 8px 8px;
  margin-top: -18px;
  padding-top: 27px;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 84px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6.1vw, 76px);
  margin-top: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
  box-shadow: inset 0 -0.28em 0 rgba(224, 165, 38, 0.55);
}
.lead {
  margin-top: 22px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 34em;
}
.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}
.link {
  font-weight: 600;
  padding: 12px 0;
}
.hero__facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__facts li::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--mustard);
  margin-right: 9px;
}

/* Screens are shown as file cards, never inside a phone mock-up. */
.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
}
.hero__stack {
  position: relative;
  aspect-ratio: 0.82;
  max-width: 520px;
  width: 100%;
  justify-self: end;
}
.hero__stack .card {
  position: absolute;
  width: 62%;
  aspect-ratio: 720 / 1280;
}
.hero__stack .card img {
  width: 100%;
}
.card--back {
  right: 0;
  top: 0;
  transform: rotate(5deg);
}
.card--mid {
  left: 16%;
  top: 6%;
  transform: rotate(-2deg);
}
.card--front {
  left: 0;
  top: 14%;
  transform: rotate(-7deg);
  box-shadow: 10px 10px 0 var(--mustard);
}

/* ── CTA ──────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 9px 26px 9px 22px;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.15;
  border: 2px solid var(--ink);
}
.cta__small {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cta__big {
  font-size: 20px;
  font-weight: 700;
}
.cta--dark {
  background: var(--green);
  color: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}
.cta--light {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--mustard);
}
a.cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.cta--soon {
  cursor: default;
  border-style: dashed;
}

/* ── Sections ─────────────────────────────────────────── */
.section-head {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  margin-top: 10px;
}
.section-head--light .kicker {
  color: var(--mustard);
}

.index {
  border-top: 2px solid var(--ink);
  padding: clamp(44px, 6vw, 80px) 0 clamp(20px, 3vw, 40px);
}

.row {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(24px, 6vw, 96px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row--flip {
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
}
.row--flip .row__text {
  order: 2;
}
.row h3 {
  font-size: clamp(25px, 3vw, 36px);
  margin-top: 18px;
}
.row p {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 32em;
}
.row ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  max-width: 32em;
}
.row li {
  padding: 10px 0 10px 30px;
  border-top: 1px solid var(--line);
  position: relative;
  font-weight: 600;
}
.row li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 17px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg) scale(0.8);
  transform-origin: left bottom;
}
.row__shot {
  margin: 0;
}
.row__shot .card {
  aspect-ratio: 720 / 1180;
  box-shadow: 9px 9px 0 var(--mustard);
}
.row--flip .row__shot .card {
  box-shadow: -9px 9px 0 var(--green);
}

.tab {
  display: inline-flex;
  align-items: stretch;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: 8px 8px 0 0;
  border-bottom-width: 0;
  overflow: hidden;
}
.tab__num {
  background: var(--mustard);
  padding: 6px 10px;
  border-right: 2px solid var(--ink);
}
.tab__name {
  padding: 6px 12px;
  background: var(--surface);
}

/* ── Privacy band ─────────────────────────────────────── */
.band {
  background: var(--green);
  color: var(--paper);
  padding: clamp(48px, 7vw, 92px) 0;
}
.facts {
  list-style: none;
  counter-reset: fact;
  max-width: var(--wrap);
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.facts li {
  counter-increment: fact;
  padding: 22px 22px 6px 0;
  border-top: 2px solid var(--mustard);
  margin-right: 22px;
}
.facts li::before {
  content: '0' counter(fact);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--mustard);
}
.facts h3 {
  font-size: 21px;
  margin-top: 10px;
}
.facts p {
  margin-top: 8px;
  color: #d5e3dc;
  font-size: 16px;
}
.band__more {
  max-width: var(--wrap);
  margin: 34px auto 0;
  padding: 0 var(--gutter);
}
.band__more a {
  color: var(--paper);
  font-weight: 600;
}

/* ── FAQ ──────────────────────────────────────────────── */
.faq {
  padding: clamp(48px, 7vw, 92px) 0;
}
.faq__list {
  max-width: var(--wrap);
  margin: clamp(22px, 3vw, 36px) auto 0;
  padding: 0 var(--gutter);
}
details {
  border-top: 1px solid var(--ink);
}
details:last-child {
  border-bottom: 1px solid var(--ink);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 700;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 26px;
  color: var(--green);
}
details[open] summary::after {
  content: '–';
}
details p {
  padding: 0 0 22px;
  color: var(--ink-soft);
  max-width: 46em;
}

/* ── Download ─────────────────────────────────────────── */
.get {
  max-width: var(--wrap);
  margin: 0 auto clamp(48px, 7vw, 92px);
  width: calc(100% - 2 * var(--gutter));
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  border-top: 12px solid var(--mustard);
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
}
.get h2 {
  font-size: clamp(28px, 4vw, 46px);
}
.get p {
  margin-top: 10px;
  color: #cfd8d2;
}
.get__contact a {
  color: var(--paper);
}

/* ── Footer ───────────────────────────────────────────── */
.foot {
  border-top: 2px solid var(--ink);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px var(--gutter) 44px;
  font-size: 15px;
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
}
.foot__note {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 30em;
}
.foot__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot__links li {
  padding: 6px 0;
}
.foot__meta {
  margin-top: 26px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ── Privacy document ─────────────────────────────────── */
.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(48px, 7vw, 88px);
}
.doc h1 {
  font-size: clamp(32px, 5vw, 50px);
  margin-top: 12px;
}
.doc__meta {
  margin-top: 14px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink-soft);
}
.doc__summary {
  margin-top: 28px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-left: 12px solid var(--mustard);
  border-radius: 10px;
  padding: 18px 20px;
}
.doc h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.doc p,
.doc ul {
  margin-top: 12px;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin-top: 6px;
}
.doc__back {
  margin-top: 44px;
  font-weight: 600;
}

/* ── Support, changelog ───────────────────────────────── */
.top__nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.faq__list--doc {
  padding: 0;
  margin-top: 16px;
}
.release {
  margin-top: 36px;
}
.release ul {
  list-style: none;
  margin: 0;
  padding: 6px 20px;
  border: 2px solid var(--ink);
  border-radius: 0 10px 10px 10px;
  background: var(--surface);
}
.release li {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.release li:last-child {
  border-bottom: 0;
}
/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__stack {
    justify-self: center;
    max-width: 420px;
    margin-top: 12px;
  }
  .row,
  .row--flip {
    grid-template-columns: 1fr;
  }
  .row--flip .row__text {
    order: 0;
  }
  .row__shot {
    max-width: 330px;
    margin-left: 9px;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .top__nav a:not(.top__nav-cta) {
    display: none;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .facts li {
    margin-right: 0;
  }
  .cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  a.cta:hover {
    transform: none;
  }
}
