/* mensio.ch: one stylesheet for every page, in the app's colours (src/lib/theme.ts), light and dark. */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --fg: #141a2b;
  --muted: #5d6680;
  --line: #dde2ec;
  --accent: #2a46d1;
  --accent-soft: #e6eafc;
  --mint: #1d9e75;
  --mint-soft: #e2f4ea;
  --warn: #9a5c00;
  --warn-soft: #fff2dc;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1220;
    --surface: #171c2e;
    --fg: #e8ebf4;
    --muted: #98a0b8;
    --line: #2a3048;
    --accent: #7d93ff;
    --accent-soft: #232c55;
    --mint: #5fd39a;
    --mint-soft: #163527;
    --warn: #f0b04a;
    --warn-soft: #3a2c12;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* header */
.top { padding: 20px 0 8px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; color: var(--fg); }
.logo svg { height: 34px; width: auto; display: block; }
.logo .wordmark { stroke: currentColor; }
.logo .i-dot { fill: var(--mint); }
.soon {
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
@media (max-width: 420px) {
  .logo svg { height: 28px; }
  .soon { font-size: 12px; padding: 5px 10px; }
}

/* home: hero (only vertical padding: .wrap gives the side gutters) */
.hero { display: grid; gap: 32px; align-items: center; padding-top: 32px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); margin: 0 0 16px; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 18px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0e1220; } }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 56px; padding-bottom: 72px; } }

/* home: the example list beside the title */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  box-shadow: 0 12px 40px rgba(20, 26, 43, 0.08); max-width: 420px; width: 100%; justify-self: center;
}
.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mock-head span { color: var(--muted); font-size: 14px; }
.mock-head strong { font-size: 24px; }
.mock ul { list-style: none; margin: 0; padding: 0; }
.mock li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mock .tile { width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--accent-soft); }
.mock li div { flex: 1; min-width: 0; }
.mock b { display: block; font-size: 15px; }
.mock small { color: var(--muted); font-size: 13px; }
.mock .amt { font-weight: 700; font-size: 15px; white-space: nowrap; }
.mock .alert {
  margin-top: 8px; border-radius: 10px; padding: 10px 12px; font-size: 14px;
  background: var(--warn-soft); color: var(--fg);
}
.mock .alert b { display: inline; color: var(--warn); }
.mock .pill {
  display: inline-block; margin-left: 6px; border-radius: 999px; padding: 1px 8px; vertical-align: 1px;
  font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-soft);
}

/* home: the problems, each with what Mensio does about it */
.pain { display: flex; flex-direction: column; gap: 8px; }
.pain h3 { margin: 0; }
.pain .fix { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--fg); display: flex; gap: 10px; }
.tag {
  display: inline-block; margin-left: 6px; border-radius: 999px; padding: 2px 8px; vertical-align: 2px; white-space: nowrap;
  font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
}

/* home: the closing call, on the brand blue in both themes */
.cta { padding: 8px 0 48px; }
.cta .band { background: #2a46d1; color: #fff; border-radius: 24px; padding: 32px 24px; }
.cta h2 { font-size: clamp(26px, 5vw, 36px); margin: 0 0 10px; }
.cta p { margin: 0 0 22px; font-size: 17px; max-width: 34em; color: rgba(255, 255, 255, 0.88); }
.cta .soon { background: rgba(255, 255, 255, 0.16); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.btn.light { background: #fff; color: #2a46d1; }
@media (min-width: 860px) { .cta .band { padding: 44px 48px; } }

/* home: sections */
section.block { padding: 40px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; }
section.block p.intro { color: var(--muted); margin: 0 0 24px; max-width: 40em; }
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { font-size: 17px; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before, .pain .fix::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d9e75' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* legal pages */
.doc { padding-top: 24px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); margin: 8px 0 4px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.box.note { background: var(--accent-soft); border-color: transparent; }
.box.warn { background: var(--warn-soft); border-color: transparent; }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.table { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
/* on a phone each table row becomes a card, its cells labelled from data-label */
@media (max-width: 640px) {
  .table { border: 0; background: none; overflow: visible; }
  .table table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
  .table td { border: 0; padding: 4px 0; }
  .table td:first-child { font-weight: 700; }
  .table td[data-label]::before {
    content: attr(data-label); display: block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
  }
}
blockquote { margin: 12px 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; }
.todo { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.back { font-size: 14px; text-decoration: none; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.foot a { color: var(--muted); }
.foot p { margin: 0; }
