/* mobileapps.kapadel.com — minimal, readable, no external fonts or trackers */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-hover: #efeee9;
  --text: #141414;
  --body: #2e2d2a;
  --muted: #6b6963;
  --line: #dedcd6;
  --line-strong: #141414;
  --accent: #141414;
  --ok: #247346;
  --radius-icon: 22.5%;
  --wrap: 1120px;
  --measure: 70ch;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1a1a1a;
    --surface-hover: #222220;
    --text: #efeeeb;
    --body: #d6d4cf;
    --muted: #9a988f;
    --line: #2e2d2a;
    --line-strong: #efeeeb;
    --accent: #efeeeb;
    --ok: #4cbf7c;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ── Header / footer ─────────────────────────────────────────────────────── */

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 14px; height: 14px; background: var(--accent); }
.brand-name { font-weight: 700; letter-spacing: -0.01em; }
.brand-sub { color: var(--muted); }

.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.brand-name, .brand-sub, .site-nav a { white-space: nowrap; }
@media (max-width: 620px) {
  .brand-sub { display: none; }
  .site-nav { gap: 16px; font-size: 14px; }
}
@media (max-width: 380px) { .site-nav { gap: 12px; } }

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px 0 40px; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); text-decoration: underline; }

/* ── Type helpers ────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.section-label {
  margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--body); max-width: 46ch; margin: 0; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text); }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  background: transparent; color: var(--text);
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn--solid { background: var(--accent); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }

.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--text); }

/* ── Home ────────────────────────────────────────────────────────────────── */

.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 24px; font-weight: 700; }

.app-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .app-grid { grid-template-columns: 1fr; } }

.app-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.app-card:hover { border-color: var(--line-strong); }
.app-card-main { display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px 18px; text-decoration: none; flex: 1; }
.app-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.app-tagline { color: var(--muted); font-size: 14px; line-height: 1.45; }
.app-card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 22px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.app-card-links > a:not(.btn) { color: var(--muted); text-decoration: none; }
.app-card-links > a:not(.btn):hover { color: var(--text); text-decoration: underline; }
.app-card-links .btn { margin-left: auto; padding: 5px 10px; font-size: 12px; }

.home-footer-note { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 72px; }
@media (max-width: 620px) { .home-footer-note { grid-template-columns: 1fr; } }

/* ── App icons ───────────────────────────────────────────────────────────── */

.app-icon { flex: none; border-radius: var(--radius-icon); box-shadow: 0 0 0 1px rgb(0 0 0 / .06); background: var(--surface-hover); }
.app-icon--blank {
  width: var(--size, 64px); height: var(--size, 64px);
  display: inline-grid; place-items: center;
  font-weight: 700; font-size: calc(var(--size, 64px) * .42); color: var(--muted);
}
.app-icon--xl { width: 112px; height: 112px; }

/* ── App page ────────────────────────────────────────────────────────────── */

.app-hero { display: flex; gap: 32px; align-items: flex-start; padding: clamp(48px, 8vw, 96px) 0 48px; }
.app-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; }
@media (max-width: 620px) { .app-hero { flex-direction: column; gap: 20px; } .app-icon--xl { width: 88px; height: 88px; } }

.doc-group { margin-top: 48px; }

/* ── Document lists ──────────────────────────────────────────────────────── */

.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list a { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 8px; text-decoration: none; align-items: baseline; }
.doc-list a:hover { background: var(--surface-hover); }
.doc-list a:hover .doc-title { text-decoration: underline; }
.doc-type { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc-title { font-weight: 500; }
@media (max-width: 620px) { .doc-list a { grid-template-columns: 1fr; gap: 2px; } }

.page-head { padding: clamp(48px, 8vw, 96px) 0 40px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; }

.search input {
  width: min(480px, 100%); margin-top: 28px; padding: 12px 14px;
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 0;
}
.search input:focus { outline: none; border-color: var(--line-strong); }

.index-app { margin-top: 40px; }
.index-app-name { margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); font-size: 17px; }
.index-app-name a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

.support-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.support-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.support-list a:hover { border-color: var(--line-strong); }

/* ── Document page ───────────────────────────────────────────────────────── */

.doc { padding-top: 32px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.crumbs a:hover { text-decoration: underline; }
.crumbs img { border-radius: var(--radius-icon); }

.doc-header { padding: clamp(32px, 6vw, 64px) 0 32px; border-bottom: 1px solid var(--line-strong); margin-bottom: 40px; }
.doc-header h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -0.028em; margin: 0; max-width: 24ch; }
.doc-meta { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.doc-layout { display: block; }
@media (min-width: 1000px) {
  .doc-layout.has-toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
  .toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
}

.toc { font-size: 14px; margin-bottom: 32px; }
.toc summary { cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--line); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: " +"; color: var(--muted); }
.toc details[open] summary::after { content: " –"; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; }
.toc li a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc li a:hover { color: var(--text); }

.prose { max-width: var(--measure); font-size: 17px; line-height: 1.72; color: var(--body); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; margin: 2.4em 0 .6em; }
.prose h3 { font-size: 18px; line-height: 1.35; margin: 1.9em 0 .5em; }
.prose h4 { font-size: 16px; margin: 1.6em 0 .4em; color: var(--text); }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose hr + h2 { margin-top: 1.4em; }
.prose a { color: var(--text); }
.prose img { display: block; margin: 1.5em 0; border: 1px solid var(--line); }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 1.2em; border-left: 2px solid var(--line-strong); color: var(--text); }
.prose code { font-size: .9em; background: var(--surface-hover); padding: .1em .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-bottom-color: var(--line-strong); }

.related { margin-top: 72px; }
.related h2 { margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.doc-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; font-size: 14px; }
.doc-actions a { text-decoration: none; }
.doc-actions a:hover { text-decoration: underline; }

/* ── Print: clean legal documents ────────────────────────────────────────── */

@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --body: #000; --muted: #444; --line: #bbb; --line-strong: #000; }
  .site-header, .site-footer, .toc, .related, .doc-actions, .crumbs, .skip { display: none !important; }
  .doc-layout.has-toc { display: block; }
  .prose { max-width: none; font-size: 11pt; line-height: 1.5; }
  .doc-header { padding-top: 0; }
  .prose a { text-decoration: none; }
  .prose h2, .prose h3 { break-after: avoid; }
}
