/* The apps' pages (2026-12-03): BT KeyMouse and JivaPDF, in the site's own dark look (the colours of styles.css,
   Manrope and IBM Plex Mono). The screenshot galleries are made by scripts/app-shots.py. */
:root {
  --paper: #111111;
  --paper-bright: #181818;
  --ink: #f4f2ed;
  --ink-body: #dcd8cf;
  --ink-soft: #aaa9a4;
  --coral: #ff5b35;
  --sky: #8ad8da;
  --acid: #dcea70;
  --line: rgba(244, 242, 237, 0.17);
  --edge: #2c2c2c;
  --white: #ffffff;
  --display: "Manrope", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --pad: clamp(1.25rem, 4.5vw, 4rem);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--display); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.ap-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.ap-skip { position: absolute; left: -999px; top: 0; padding: .6rem 1rem; background: var(--white); color: #111; z-index: 20; }
.ap-skip:focus { left: 1rem; top: 1rem; }

/* ---------- the top bar */
.ap-top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--edge); background: rgba(17, 17, 17, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ap-top .ap-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.ap-top img { width: 118px; }
.ap-top nav { display: flex; gap: clamp(.9rem, 3vw, 1.8rem); font-size: .92rem; font-weight: 700; }
.ap-top nav a { color: var(--ink-soft); text-decoration: none; }
.ap-top nav a:hover, .ap-top nav a[aria-current] { color: var(--ink); }

/* ---------- words */
.ap-eyebrow { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; color: var(--ink-soft); font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.ap-eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; }
.ap-section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--edge); }
.ap-section h2 { max-width: 20ch; margin: 0 0 1rem; font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.ap-intro { max-width: 42rem; margin: 0 0 2.5rem; color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- the top of the page */
.ap-hero { border-bottom: 1px solid var(--edge); background-color: var(--paper); background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; }
.ap-hero .ap-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.ap-hero.ap-tall .ap-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.ap-icon { width: 84px; height: 84px; margin-bottom: 1.6rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.ap-hero h1 { margin: 0 0 1rem; font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; letter-spacing: -.055em; line-height: .95; }
.ap-lead { max-width: 34rem; margin: 0 0 2rem; color: var(--ink-body); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; }
.ap-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.2rem; }
.ap-btn { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: .55rem 1.35rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700; line-height: 1.2; text-decoration: none; }
.ap-btn small { color: var(--ink-soft); font-size: .74rem; font-weight: 500; }
.ap-btn:hover { border-color: var(--ink); }
.ap-btn-primary { border-color: var(--white); background: var(--white); color: #111; }
.ap-btn-primary small { color: #555; }
.ap-btn-primary:hover { border-color: var(--acid); background: var(--acid); }
.ap-btn-soon { border-style: dashed; color: var(--ink-soft); }
.ap-btn-soon:hover { border-color: var(--line); }
.ap-meta { margin: 0 0 1.4rem; color: var(--ink-soft); font-size: .9rem; }
.ap-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ap-chips li { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--sky); font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }
.ap-hero-shot { margin: 0; }
.ap-hero-shot img { width: 100%; border: 1px solid var(--edge); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.ap-hero.ap-tall .ap-hero-shot img { width: auto; max-height: 640px; margin: 0 auto; }

/* ---------- facts in a row */
.ap-facts { border-bottom: 1px solid var(--edge); }
.ap-facts .ap-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-facts .ap-wrap > div { padding: 1.8rem 1.2rem 1.8rem 0; }
.ap-facts .ap-wrap > div + div { padding-left: 1.2rem; border-left: 1px solid var(--edge); }
.ap-facts b { display: block; margin-bottom: .3rem; font-size: 1.05rem; letter-spacing: -.01em; }
.ap-facts span { color: var(--ink-soft); font-size: .92rem; }

/* ---------- screenshots by device (CSS tabs: one radio per device) */
.ap-tabs { position: relative; }
.ap-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.ap-tabs > label { display: inline-block; margin: 0 .4rem .6rem 0; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .9rem; font-weight: 700; cursor: pointer; }
.ap-tabs > label:hover { color: var(--ink); }
.ap-tabs > input:checked + label { border-color: var(--ink); background: var(--ink); color: #111; }
.ap-tabs > input:focus-visible + label { outline: 2px solid var(--coral); outline-offset: 2px; }
.ap-panels { margin-top: 1.2rem; }
.ap-shots { display: none; gap: 1rem; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 1rem; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-color: #444 transparent; }
.ap-shots li { flex: none; scroll-snap-align: start; }
.ap-shots img { width: auto; max-width: none; border: 1px solid var(--edge); border-radius: 14px; }
/* each set's shape is written by scripts/app-shots.py (keep the numbers in step with its shape()) */
.ap-wide img { width: clamp(280px, 86vw, 620px); height: auto; }
.ap-mid img { height: clamp(240px, 62vw, 400px); }
.ap-upright img { height: clamp(360px, 100vw, 560px); }
.ap-shot { display: block; border-radius: 14px; }
.ap-tabs > input:nth-of-type(1):checked ~ .ap-panels > .ap-shots:nth-of-type(1),
.ap-tabs > input:nth-of-type(2):checked ~ .ap-panels > .ap-shots:nth-of-type(2),
.ap-tabs > input:nth-of-type(3):checked ~ .ap-panels > .ap-shots:nth-of-type(3),
.ap-tabs > input:nth-of-type(4):checked ~ .ap-panels > .ap-shots:nth-of-type(4),
.ap-tabs > input:nth-of-type(5):checked ~ .ap-panels > .ap-shots:nth-of-type(5),
.ap-tabs > input:nth-of-type(6):checked ~ .ap-panels > .ap-shots:nth-of-type(6) { display: flex; }
.ap-hint { margin: .3rem 0 0; color: var(--ink-soft); font-size: .85rem; }

/* ---------- foldables and big screens */
.ap-fold { background: radial-gradient(1200px 500px at 80% 0%, rgba(138, 216, 218, .08), transparent 70%), var(--paper); }
.ap-fold-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ap-fold-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.25rem; background: linear-gradient(160deg, #1c1c1c, #141414); }
.ap-fold-card h3 { margin: 0 0 .6rem; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.15; }
.ap-fold-card p { margin: 0 0 1.4rem; color: var(--ink-body); }
.ap-fold-pics { display: grid; grid-template-columns: 1.7fr 1fr; gap: .75rem; align-items: end; margin: 0; }
.ap-fold-pics.ap-one { grid-template-columns: 1fr; }
.ap-fold-pics figure { margin: 0; }
.ap-fold-pics img { width: 100%; border: 1px solid var(--edge); border-radius: 12px; }
.ap-fold-pics figcaption { margin-top: .45rem; color: var(--ink-soft); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.ap-works { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.ap-works li { padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #1b1b1b; font-size: .92rem; font-weight: 700; }
.ap-works li::before { content: "✓"; margin-right: .45rem; color: var(--acid); }

/* ---------- features: a picture beside a few lines, then small cards */
.ap-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2rem, 4vw, 3.5rem) 0; border-top: 1px solid var(--edge); }
.ap-feature:nth-of-type(even) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ap-feature:nth-of-type(even) figure { order: -1; }
.ap-feature h3 { margin: 0 0 .8rem; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.04em; line-height: 1.05; }
.ap-feature p { margin: 0 0 .8rem; color: var(--ink-body); }
.ap-feature ul { margin: 0; padding-left: 1.1rem; color: var(--ink-body); }
.ap-feature li { margin: .35rem 0; }
.ap-feature figure { margin: 0; }
.ap-feature figure img { width: 100%; border: 1px solid var(--edge); border-radius: 16px; }
.ap-feature.ap-tall figure img { width: auto; max-height: 560px; margin: 0 auto; }
.ap-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.ap-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper-bright); }
.ap-card h3 { margin: 0 0 .5rem; font-size: 1.12rem; letter-spacing: -.02em; }
.ap-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.ap-card .ap-tag { display: block; margin-bottom: .9rem; color: var(--coral); font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- how it works */
.ap-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.ap-steps li { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink-body); counter-increment: step; }
.ap-steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 1rem; color: var(--coral); font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; }
.ap-note { margin: 1.5rem 0 0; color: var(--ink-soft); }

/* ---------- two columns: words and a list */
.ap-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ap-two p { color: var(--ink-body); }
.ap-list { margin: 0; padding: 0; list-style: none; }
.ap-list li { padding: .9rem 0; border-top: 1px solid var(--edge); color: var(--ink-body); }
.ap-list li:last-child { border-bottom: 1px solid var(--edge); }
.ap-list b { color: var(--ink); }
.ap-ol { margin: 0; padding-left: 1.3rem; color: var(--ink-body); }
.ap-ol li { margin: .55rem 0; }

/* ---------- questions */
.ap-faq details { padding: 1.2rem 0; border-top: 1px solid var(--edge); }
.ap-faq details:last-of-type { border-bottom: 1px solid var(--edge); }
.ap-faq summary { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.1rem; font-weight: 700; list-style: none; cursor: pointer; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; color: var(--coral); font-family: var(--mono); }
.ap-faq details[open] summary::after { content: "−"; }
.ap-faq p { max-width: 46rem; margin: .8rem 0 0; color: var(--ink-body); }

/* ---------- the end */
.ap-cta { text-align: center; }
.ap-cta h2, .ap-cta .ap-intro { margin-left: auto; margin-right: auto; }
.ap-cta .ap-actions { justify-content: center; }
.ap-foot { padding: 2.5rem 0 3rem; color: var(--ink-soft); font-size: .9rem; }
.ap-foot .ap-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.ap-foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.ap-foot a { color: var(--ink-soft); }

/* ---------- a screenshot, large (app.js) */
.ap-lightbox { max-width: min(96vw, 1600px); max-height: 94vh; padding: 0; overflow: visible; border: 0; border-radius: 14px; background: #000; }
.ap-lightbox::backdrop { background: rgba(0, 0, 0, .86); }
.ap-lightbox img { width: auto; max-width: min(96vw, 1600px); height: auto; max-height: 94vh; border-radius: 14px; }
.ap-lightbox-close { position: absolute; top: .6rem; right: .6rem; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .ap-hero .ap-wrap, .ap-hero.ap-tall .ap-wrap, .ap-feature, .ap-feature:nth-of-type(even), .ap-fold-grid, .ap-two { grid-template-columns: minmax(0, 1fr); }
  .ap-feature:nth-of-type(even) figure { order: 0; }
  .ap-facts .ap-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-facts .ap-wrap > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ap-facts .ap-wrap > div:nth-child(n + 3) { border-top: 1px solid var(--edge); }
  .ap-cards, .ap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-hero.ap-tall .ap-hero-shot img { max-height: 520px; }
}
@media (max-width: 560px) {
  .ap-cards, .ap-steps { grid-template-columns: minmax(0, 1fr); }
  .ap-top nav .ap-wide-only { display: none; }
  .ap-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
