/* Apensum website. System fonts only (nothing loaded from third parties). */
:root {
  --brand: #1a56db;
  --brand-strong: #0f3fa8;
  --brand-soft: #e8efff;
  --ink: #111a33;
  --text: #2b3550;
  --muted: #5b6474;
  --line: #e3e7f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --card: #ffffff;
  --ok: #12805c;
  --ok-soft: #e3f6ee;
  --shadow: 0 1px 2px rgba(17, 26, 51, 0.05), 0 8px 24px rgba(17, 26, 51, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 63, 168, 0.18);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5b8cf0;
    --brand-strong: #8aaef5;
    --brand-soft: #18264a;
    --ink: #f1f4fb;
    --text: #cdd4e4;
    --muted: #94a0b8;
    --line: #26304a;
    --bg: #0c1222;
    --bg-alt: #111a2e;
    --card: #141e34;
    --ok: #4cc38a;
    --ok-soft: #13301f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.icon { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow .icon { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.92rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: #0f3fa8; }
.btn-light:hover { background: #eef3ff; color: #0f3fa8; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }
.wordmark b { color: var(--ink); font-weight: 750; }
.menu summary { list-style: none; cursor: pointer; display: none; padding: 8px; border-radius: 8px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { display: flex; align-items: center; gap: 22px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--brand); }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.langs a { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 3px 7px; border-radius: 6px; }
.langs a span { display: none; }
.langs a[aria-current] { background: var(--brand-soft); color: var(--brand); }
.header-actions { display: flex; gap: 10px; }
.menu { display: none; }
@media (max-width: 1080px) {
  .menu-panel.bar { display: none; }
  .menu { display: block; }
  .menu summary { display: inline-flex; }
  .menu .menu-panel {
    position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav { flex-direction: column; gap: 4px; }
  .nav a { padding: 10px 4px; font-size: 1.05rem; }
  .langs { flex-wrap: wrap; border: 0; padding: 0; gap: 6px; }
  .langs a { border: 1px solid var(--line); padding: 6px 10px; font-size: 0.9rem; }
  .langs a span { display: inline; margin-left: 6px; font-weight: 500; }
  .header-actions .btn { flex: 1; }
}

/* Sections */
.section { padding: 88px 0; }
.section.tight { padding: 40px 0 72px; }
.band { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .section { padding: 64px 0; } }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card.subtle { box-shadow: none; background: var(--bg-alt); margin-top: 28px; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand);
}
.mini { display: flex; gap: 14px; align-items: flex-start; }
.mini > .icon { color: var(--brand); margin-top: 3px; }
.mini h3 { font-size: 1.02rem; margin-bottom: 4px; }
.mini p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.compact { row-gap: 30px; column-gap: 36px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon {
  width: 22px; height: 22px; padding: 3px; margin-top: 2px;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 2.6;
}

/* Hero */
.hero {
  padding: 72px 0 84px;
  background:
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero .lead { font-size: 1.22rem; margin-bottom: 28px; }
.note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 0.92rem; }
.note .icon { width: 18px; height: 18px; }

/* App mock-up */
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 480px; justify-self: center; width: 100%;
  transform: rotate(-1deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: linear-gradient(135deg, #1a56db, #0f3fa8); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.mock-bar span { margin-left: 10px; color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; }
.mock-body { padding: 18px; display: grid; gap: 14px; background: var(--bg-alt); }
.mock-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mock-row.small { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.mock-row.small strong { color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-ok b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mock-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 110px; margin-top: 14px; align-items: end; }
.mock-week .day { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.mock-week .day span { align-self: end; display: block; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--brand) 75%, transparent); }
.mock-week .day.off span { background: repeating-linear-gradient(135deg, var(--line) 0 4px, transparent 4px 8px); }
.mock-week .day.now span { background: linear-gradient(to top, var(--brand), color-mix(in srgb, var(--brand) 35%, transparent)); }
.mock-week .day small { font-size: 0.72rem; color: var(--muted); }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.mock-tile small { display: block; font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tile strong { font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.mock-tile em { font-style: normal; font-size: 0.78rem; color: var(--muted); margin-left: 4px; }
.mock-toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-size: 0.88rem; font-weight: 500;
}
.mock-toast .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 2.6; }

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--card); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid div { padding: 26px 20px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.facts-grid div:first-child { border-left: 0; }
.facts-grid strong { font-size: 1.8rem; color: var(--brand); letter-spacing: -0.03em; line-height: 1.1; }
.facts-grid span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid div:nth-child(3) { border-left: 0; }
  .facts-grid div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Holidays card */
.holiday-card { display: grid; gap: 14px; }
.holiday-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cantons { display: flex; flex-wrap: wrap; gap: 6px; }
.canton { font-size: 0.78rem; font-weight: 700; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); }
.canton.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.canton.more { border-style: dashed; }
.holidays { list-style: none; padding: 0; margin: 0; }
.holidays li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.holidays li:last-child { border-bottom: 0; }
.holidays time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.holiday-card p { margin: 0; }

/* Page head */
.page-head { padding: 64px 0 28px; }
.page-head .lead { margin-bottom: 0; }

/* Features page */
.with-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 24px; padding-bottom: 40px; }
.toc { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.toc a .icon { width: 18px; height: 18px; color: var(--muted); }
.toc a:hover { background: var(--bg-alt); color: var(--brand); }
.feature-groups { display: grid; gap: 20px; }
.feature-group { scroll-margin-top: 90px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feature-group-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.feature-group-head .feature-icon { margin: 0; }
.feature-group-head .lead { font-size: 1.02rem; margin: 0; }
.feature-group h2 { font-size: 1.4rem; margin-bottom: 6px; }
@media (max-width: 900px) {
  .with-toc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line); padding: 6px 10px; font-size: 0.88rem; }
  .feature-group { padding: 22px; }
  .feature-group-head { flex-direction: column; gap: 12px; }
}

/* CTA */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 48px; border-radius: 22px; color: #e6edff;
  background: radial-gradient(500px 240px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 70%), linear-gradient(135deg, #1a56db, #0f3fa8);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 52ch; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } .cta-band .btn { width: 100%; } }

/* Contact */
.contact-card { display: grid; gap: 4px; justify-items: start; }
.contact-card .btn { margin: 8px 0 12px; }
.contact-card p { margin-bottom: 4px; }

/* Long text */
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose p { max-width: 70ch; }
.facts-list { display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px; margin: 0 0 32px; }
.facts-list dt { font-weight: 600; color: var(--ink); }
.facts-list dd { margin: 0; }
@media (max-width: 560px) { .facts-list { grid-template-columns: 1fr; gap: 2px; } .facts-list dd { margin-bottom: 12px; } }
.todo { color: #b4231a; font-style: normal; background: #fdecea; padding: 0 6px; border-radius: 4px; }
.note-block { margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 56px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid nav a { color: var(--text); text-decoration: none; }
.footer-grid nav a:hover { color: var(--brand); }
.footer-grid p { margin-top: 12px; max-width: 40ch; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Language chooser (/) and 404 */
.chooser { min-height: 100vh; display: grid; place-items: center; background: var(--bg-alt); }
.chooser-main { max-width: 560px; padding: 48px 20px; display: grid; gap: 28px; justify-items: center; }
.chooser-list { display: grid; gap: 10px; width: 100%; }
.chooser-option {
  display: grid; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); text-decoration: none; color: var(--text); box-shadow: var(--shadow);
}
.chooser-option strong { color: var(--ink); font-size: 1.05rem; }
.chooser-option span { color: var(--muted); font-size: 0.92rem; }
.chooser-option:hover { border-color: var(--brand); }
.not-found { display: grid; gap: 22px; width: 100%; }
.not-found section { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.not-found section:last-child { border-bottom: 0; }
.not-found h1 { font-size: 1.3rem; margin-bottom: 4px; }
.not-found p { margin-bottom: 6px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link-arrow .icon { transition: none; }
  .btn:hover { transform: none; }
}

/* Pricing */
.section.tight-bottom { padding-bottom: 0; }
.pricing-teaser { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 36px; }
.pricing-teaser .lead { margin-bottom: 14px; }
.price-badge {
  display: grid; justify-items: center; gap: 4px; padding: 26px 34px; border-radius: 18px;
  background: var(--brand-soft); color: var(--brand); text-align: center;
}
.price-badge strong { font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.price-badge span { font-size: 0.9rem; color: var(--muted); }
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 32px; }
.plan .checklist { margin: 8px 0 26px; flex: 1; align-content: start; }
.plan .btn { align-self: flex-start; }
.plan-main { border: 2px solid var(--brand); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.price strong { font-size: 2.4rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.price span { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.profile { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 32px 24px; }
.profile h2 { margin: 12px 0 0; }
.profile p { margin: 0 0 10px; }
.profile .link-arrow { font-size: 0.92rem; overflow-wrap: anywhere; }
.portrait { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.portrait.initials {
  display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; color: #fff;
  background: linear-gradient(135deg, #1a56db, #0f3fa8);
}
.about-grid .prose h2 { margin-top: 1.6em; }
.about-grid .prose p { font-size: 1.08rem; }
.invest { display: flex; gap: 22px; align-items: flex-start; padding: 34px; }
.invest .feature-icon { flex: none; margin: 0; }
.invest p { max-width: 70ch; color: var(--muted); }
@media (max-width: 640px) { .invest { flex-direction: column; } }

/* Contact */
.stack { display: grid; gap: 20px; }

/* Phone behind a click, profile links */
.reveal {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
}
.reveal .icon, .profile-links .icon { width: 18px; height: 18px; }
.reveal:hover { color: var(--brand-strong); }
a.phone { font-weight: 600; font-variant-numeric: tabular-nums; }
.profile-links { display: grid; gap: 10px; justify-items: center; margin-top: 8px; font-size: 0.92rem; }
.profile-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.profile-links a:hover { text-decoration: underline; }
.profile .muted.small { margin-top: -6px; }
