/* Fertigo as the app looks (apps/kladde/src/assets/main.css): white and ink, Sometype Mono for everything, colour only where
   it says something, in the status pills. */
:root {
  --ground: #ffffff;
  --card: #ffffff;
  --ink: #0b0d10;
  --soft: #5f646c;
  --line: #e6e6e9;
  --accent: #15171a;
  --accent-ink: #ffffff;
  --tint: #f1f1f3;
  --open: #1d4ed8;
  --open-tint: #e8effd;
  --late: #c62828;
  --late-tint: #fdecec;
  --paid: #12763f;
  --paid-tint: #e6f5ec;
  --mono: 'Sometype Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 56px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e0f11;
    --card: #17191c;
    --ink: #f1f2f4;
    --soft: #a0a5ad;
    --line: #2a2c30;
    --accent: #f1f2f4;
    --accent-ink: #0e0f11;
    --tint: #1f2125;
    --open: #8db0ff;
    --open-tint: #1a2740;
    --late: #ff8a80;
    --late-tint: #3a1d1d;
    --paid: #6fd39b;
    --paid-tint: #15301f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.55 var(--mono); letter-spacing: -0.02em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.05em; }
p { margin: 0; }

.bar, main, .foot { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.bar, main, .foot { max-width: 1120px; margin: 0 auto; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: 12px; }
.bar .home { font-size: 20px; font-weight: 600; letter-spacing: -0.05em; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.bar nav a { text-decoration: none; color: var(--soft); padding: 8px 0; }
.bar nav a:hover { color: var(--ink); }
.bar .store { color: var(--ink); padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.btn:hover { opacity: .9; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 72px); align-items: center; padding: clamp(36px, 8vw, 96px) 0 clamp(40px, 7vw, 88px); }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -0.06em; text-wrap: balance; }
.lede { margin-top: 20px; font-size: clamp(16px, 1.7vw, 19px); color: var(--soft); max-width: 46ch; }
.cta { margin-top: 28px; }
.soon { margin-top: 28px; font-weight: 600; }
.fine { margin-top: 14px; font-size: 14px; color: var(--soft); }

/* The list from the app, as HTML: who owes what. */
.sheet { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.sheet .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 18px; border-top: 1px solid var(--line); }
.sheet .row:first-child { border-top: 0; }
.sheet b { font-weight: 600; overflow-wrap: anywhere; }
.sheet .amount { font-weight: 600; text-align: right; white-space: nowrap; }
.sheet .number { font-size: 13.5px; color: var(--soft); }
.pill { justify-self: end; display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill.open { color: var(--open); background: var(--open-tint); }
.pill.late { color: var(--late); background: var(--late-tint); }
.pill.paid { color: var(--paid); background: var(--paid-tint); }

section { padding: clamp(36px, 6vw, 64px) 0; border-top: 1px solid var(--line); }
section > h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.1; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 44px; margin-top: 28px; }
.grid h3 { font-size: 18px; line-height: 1.25; }
.grid p { margin-top: 8px; color: var(--soft); font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 28px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.plan.main { border-color: var(--ink); }
.plan h3 { font-size: 16px; }
.plan .price { margin-top: 8px; color: var(--ink); font-size: 25px; font-weight: 600; letter-spacing: -0.05em; }
.plan p { margin-top: 6px; font-size: 14px; color: var(--soft); }
.note { margin-top: 18px; font-size: 14px; color: var(--soft); max-width: 72ch; }

.help-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px clamp(32px, 6vw, 72px); margin-top: 22px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 15px 0; font-weight: 600; }
details p { padding-bottom: 16px; color: var(--soft); font-size: 15px; max-width: 66ch; }
details b { color: var(--ink); font-weight: 600; }
.contact { font-size: 15px; color: var(--soft); }
.contact .mail { margin-top: 10px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

.foot { padding-bottom: max(36px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--soft); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--ink); }

.legal { padding-top: clamp(24px, 5vw, 64px); padding-bottom: 80px; }
.legal > * { max-width: 720px; }
.legal h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.06; letter-spacing: -0.06em; }
.legal .updated { margin-top: 12px; font-size: 13px; color: var(--soft); }
.legal .intro { margin-top: 24px; font-size: 18px; max-width: 54ch; }
.legal section { margin-top: 32px; padding: 20px 0 0; }
.legal h2 { font-size: 21px; line-height: 1.2; }
.legal section p { margin-top: 10px; color: var(--soft); max-width: 66ch; }
.legal b { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .hero, .help-cols { grid-template-columns: minmax(0, 1fr); }
}
