/* Sample Library Keeper — landing. Identity «Kartoteek»: graphite sampler display, warm grey body,
   signal orange keys, index cards with a tab. Archivo + DM Mono, self-hosted (latin + latin-ext). */

@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: 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: 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: 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: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-800-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: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-ext-800-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: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-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; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-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; }

:root {
  --body: #ece9e2;
  --card: #fbfaf7;
  --sunk: #e1ddd4;
  --ink: #1a1b1e;
  --soft: #4e5057;
  --line: #d3cfc5;
  --line-strong: #a8a398;
  --panel: #1c1d21;
  --panel-raised: #2b2d33;
  --panel-line: #3a3d44;
  --on-panel: #f2f0eb;
  --on-panel-soft: #b3b6bd;
  --signal: #f0641e;
  --signal-dark: #b9470d;
  --signal-text: #a93f0a;
  --wave: #ff8b3d;
  --teal: #12726b;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1120px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--body); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; overflow-wrap: anywhere; hyphens: auto; }
p, li, dd, dt, summary { overflow-wrap: anywhere; hyphens: auto; }
a { color: var(--signal-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--signal); color: var(--ink); padding: 10px 16px; z-index: 10; font-weight: 600; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--panel); color: var(--on-panel); border-bottom: 1px solid var(--panel-line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-panel); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.2px; min-width: 0; }
.brand img { flex: none; border-radius: 8px; }
.brand:hover { color: var(--wave); }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--on-panel-soft); text-decoration: none; font-family: var(--mono); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a.here { color: var(--on-panel); border-bottom-color: var(--signal); }

/* Hero: the sampler display */
.hero { background: var(--panel); color: var(--on-panel); padding: 56px 0 0; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: var(--body); }
.hero-inner { position: relative; z-index: 1; }
.hero-labels { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.hero-labels li { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--wave); border: 1.5px solid var(--panel-line); border-radius: 3px; padding: 4px 10px; }
.hero h1 { font-weight: 800; font-size: clamp(36px, 6.4vw, 72px); letter-spacing: -1.2px; max-width: 15ch; margin-bottom: 20px; }
.hero-lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--on-panel-soft); max-width: 60ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-note { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--on-panel-soft); margin: 22px 0 0; }
.link-key { display: inline-flex; align-items: center; min-height: 48px; color: var(--on-panel); font-weight: 600; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.link-key:hover { color: var(--wave); }

.strip { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 52px; align-items: end; padding-bottom: 8px; }
.strip-item:nth-child(2) { transform: translateY(-36px); }

/* Screenshot frames: a graphite display with rounded top corners */
.shot { margin: 0; background: var(--panel); border: 10px solid var(--panel); border-bottom-width: 0; border-radius: 26px 26px 0 0; overflow: hidden; max-width: 340px; width: 100%; justify-self: center; aspect-ratio: 480 / 896; }
.shot img { width: 100%; border-radius: 16px 16px 0 0; }
.strip .shot { max-width: 320px; box-shadow: 0 2px 0 var(--panel-line); }
.framed { box-shadow: 10px 10px 0 var(--sunk); }

/* Formats */
.formats { padding: 36px 0 12px; }
.formats-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; border-top: 3px solid var(--ink); padding-top: 22px; }
.format-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.format-list li { font-family: var(--mono); font-size: 15px; background: var(--panel); color: var(--wave); padding: 6px 12px; border-radius: 3px; letter-spacing: 1px; }
.formats p { margin: 0; color: var(--soft); flex: 1 1 320px; }

/* Section titles */
.section-title { font-weight: 800; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.6px; }
.section-lead { color: var(--soft); max-width: 62ch; margin: 0 0 28px; }

/* Steps: index cards with a tab */
.steps { padding: 64px 0 24px; }
.step-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 0 var(--r) var(--r) var(--r); padding: 22px 20px 20px; margin-top: 30px; }
.step-tab { position: absolute; left: -1.5px; top: -31px; height: 30px; display: inline-flex; align-items: center; padding: 0 12px; background: var(--signal); color: var(--ink); font-family: var(--mono); font-size: 13px; letter-spacing: 1px; border-radius: 6px 6px 0 0; }
.step h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.step p { margin: 0; color: var(--soft); font-size: 16px; }

/* Feature stories */
.features { padding: 40px 0; }
.feature { padding: 48px 0; }
.feature-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.feature-flip .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.4px; }
.feature-text > p { color: var(--soft); max-width: 58ch; }
.tab-label { display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); background: var(--signal); padding: 4px 12px; border-radius: 3px; margin: 0 0 16px; }
.points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 11px; height: 11px; border-radius: 2px; background: var(--teal); }

/* The library card */
.catalog { padding: 40px 0 64px; }
.index-card { position: relative; margin-top: 34px; background: var(--card) repeating-linear-gradient(to bottom, transparent 0, transparent 39px, #e3ded3 39px, #e3ded3 40px); border: 1.5px solid var(--line-strong); border-radius: 0 var(--r) var(--r) var(--r); padding: 28px 28px 28px 64px; box-shadow: 8px 8px 0 var(--sunk); }
.index-card::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; width: 2px; background: var(--signal); opacity: 0.7; }
.index-tab { position: absolute; left: -1.5px; top: -34px; height: 33px; padding: 0 16px; display: flex; align-items: center; background: var(--panel); color: var(--wave); font-family: var(--mono); font-size: 13px; letter-spacing: 2px; border-radius: 6px 6px 0 0; }
.index-card h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 40px; margin: 0 0 6px; }
.card-rows { margin: 0; }
.card-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 8px 0 0; min-height: 40px; }
.card-row dt { font-family: var(--mono); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--signal-text); padding-top: 3px; }
.card-row dd { margin: 0; }

/* Gallery */
.gallery { padding: 24px 0 72px; }
.gallery-row { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 40px; justify-content: start; }

/* Privacy block */
.privacy-block { background: var(--panel); color: var(--on-panel); padding: 64px 0; }
.facts { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.facts li { position: relative; padding-left: 28px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 2px; background: var(--signal); }
.facts h3 { font-size: 20px; margin-bottom: 4px; }
.facts p { margin: 0; color: var(--on-panel-soft); }
.link-light { color: var(--wave); font-weight: 600; }
.link-light:hover { color: var(--on-panel); }

/* FAQ */
.faq { padding: 64px 0; }
details { border-top: 1.5px solid var(--line-strong); padding: 4px 0; }
details:last-of-type { border-bottom: 1.5px solid var(--line-strong); }
summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--signal-text); flex: none; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--soft); max-width: 70ch; }
.more-link { margin-top: 24px; font-weight: 600; }

/* Final CTA */
.final { background: var(--signal); color: var(--ink); padding: 56px 0; }
.final-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; }
.final h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.6px; margin: 0; grid-column: 1; }
.final p { margin: 0; grid-column: 1; max-width: 60ch; }
.final a { color: var(--ink); font-weight: 600; }
.final .play { grid-column: 2; grid-row: 1 / span 2; }

/* Google Play key */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: var(--r); background: var(--signal); color: var(--ink); text-decoration: none; border-bottom: 4px solid var(--signal-dark); }
.play:hover { color: var(--ink); filter: brightness(1.05); }
.play-icon { width: 22px; height: 22px; flex: none; background: var(--ink); clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.play-big { font-weight: 800; font-size: 19px; }
.play-soon { cursor: default; }
.final .play { background: var(--panel); color: var(--on-panel); border-bottom-color: #000; }
.final .play .play-icon { background: var(--wave); }

/* Text pages */
.page { padding: 56px 0 72px; }
.kicker { font-family: var(--mono); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); background: var(--signal); display: inline-block; padding: 3px 12px; border-radius: 3px; margin: 0 0 18px; }
.page h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -0.8px; }
.page h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-top: 40px; }
.lead { font-size: 19px; color: var(--soft); }
.howto { padding-left: 1.3em; display: grid; gap: 10px; }
.howto li::marker { font-family: var(--mono); color: var(--signal-text); }
.tabs-list { margin: 0; display: grid; gap: 12px; }
.tabs-list div { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--panel); border-radius: var(--r); padding: 14px 18px; }
.tabs-list dt { font-weight: 800; }
.tabs-list dd { margin: 4px 0 0; color: var(--soft); }
.legal h2 { font-size: 22px; }
.updated { margin-top: 40px; font-family: var(--mono); font-size: 14px; color: var(--soft); }

/* Footer */
.foot { background: var(--panel); color: var(--on-panel-soft); padding: 40px 0 0; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 32px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 560px; }
.foot-brand img { flex: none; border-radius: 8px; }
.foot-name { margin: 0; color: var(--on-panel); font-weight: 800; font-size: 19px; }
.foot-small { margin: 4px 0 0; font-size: 15px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-links a { color: var(--on-panel); display: inline-flex; min-height: 40px; align-items: center; }
.foot-links a:hover { color: var(--wave); }
.foot-wave { height: 18px; background: repeating-linear-gradient(to right, var(--panel-line) 0 6px, transparent 6px 10px); -webkit-mask: linear-gradient(to bottom, #000 0 100%); }

/* Tablet */
@media (max-width: 980px) {
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 36px; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 40px; }
  .hero::after { height: 120px; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-top: 40px; padding-bottom: 16px; -webkit-overflow-scrolling: touch; }
  .strip-item { flex: 0 0 72%; scroll-snap-align: center; }
  .strip-item:nth-child(2) { transform: none; }
  .step-list { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 32px 0; }
  .feature-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-flip .feature-text { order: 0; }
  .feature .shot { max-width: 300px; }
  .index-card { padding: 22px 18px 22px 40px; }
  .index-card::before { left: 24px; }
  .card-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 6px; }
  .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .final-inner { grid-template-columns: minmax(0, 1fr); }
  .final .play { grid-column: 1; grid-row: auto; justify-self: start; }
  .nav a { padding: 0 8px; font-size: 13px; }
  .brand { font-size: 17px; }
}
@media (max-width: 360px) {
  .nav a { padding: 0 6px; letter-spacing: 0.5px; }
  .gallery-row { grid-template-columns: minmax(0, 1fr); }
}
