/* 1RESET App – zelfde thema als de website */
:root {
  color-scheme: light;
  --ground: #F4F8FB; --paper: #FFFFFF; --plum: #173F5F; --plum-2: #1F5582; --night: #0F2C44; --ink: #10263A; --muted: #4E6A82; --line: #D8E6F0;
  --ruby: #276A9C; --ruby-soft: #E3F0F8; --lav: #E6F1F9; --sand: #EFE8DC; --mist: #E1ECF1; --sage: #E3EEE8; --ok: #2F7D57;
  --f-display: "Fraunces", Georgia, serif; --f-body: "Hanken Grotesk", system-ui, sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--ground); color: var(--ink); font: 400 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 8px; }
.shell { max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; background: var(--ground); }
@media (min-width: 600px) { body { background: #E6EEF4; } .shell { box-shadow: 0 0 60px rgba(23,63,95,.08); } }
.bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px; background: rgba(246,245,243,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font: 500 22px/1 var(--f-display); color: var(--plum); display: inline-flex; align-items: center; gap: 8px; }
.brand { line-height: 0; min-height: 44px; }
.brand .logo-svg { height: 26px; width: auto; display: block; }
.brand .l-1 { fill: #173F5F; } .brand .l-r { fill: #276A9C; }
.bar-week { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.view { flex: 1; padding: 20px 18px calc(96px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; align-content: start; outline: none; }
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 6; }
.tabs button { border: 0; background: none; cursor: pointer; display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; border-radius: 12px; }
.tabs svg { width: 22px; height: 22px; }
.tabs button[aria-current="page"] { color: var(--plum); background: var(--lav); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--plum); margin: 0; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: 34px; } h2 { font-size: 26px; } h3 { font-size: 20px; }
p { margin: 0; }
.kicker { font: 500 12px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
.card { background: var(--paper); border-radius: 22px; padding: 18px; display: grid; gap: 12px; box-shadow: 0 1px 2px rgba(23,63,95,.04), 0 10px 30px rgba(23,63,95,.05); }
.card.dark { background: radial-gradient(90% 90% at 70% 20%, #1F5582 0%, var(--night) 75%); color: #E3EEF6; }
.card.dark h2, .card.dark h3 { color: #fff; } .card.dark .muted { color: #BCD3E4; } .card.dark .kicker { color: #A9C6DC; }
.card.lav { background: var(--lav); box-shadow: none; } .card.sand { background: var(--sand); box-shadow: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 600 15.5px/1 var(--f-body); padding: 15px 22px; border-radius: 999px; background: var(--plum); color: #fff; }
.btn.light { background: #fff; color: var(--plum); }
.btn.outline { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--plum); }
.btn.block { width: 100%; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.danger { background: var(--ruby); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.big { font: 400 44px/1 var(--f-display); color: var(--plum); font-variant-numeric: tabular-nums; }
.card.dark .big { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--ground); border-radius: 16px; padding: 12px; display: grid; gap: 2px; }
.stat b { font: 400 28px/1 var(--f-display); color: var(--plum); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-dots div { display: grid; justify-items: center; gap: 4px; font: 500 12px/1 var(--f-mono); color: var(--muted); }
.week-dots i { width: 100%; aspect-ratio: 1; max-width: 40px; border-radius: 12px; background: var(--line); display: grid; place-items: center; font-style: normal; color: #fff; font-size: 14px; }
.week-dots i.yes { background: var(--plum); } .week-dots i.no { background: #BCD0DF; } .week-dots i.today { box-shadow: inset 0 0 0 2px var(--ruby); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tasks label { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; background: var(--ground); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.tasks input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #173F5F; }
.tasks b { display: block; font-weight: 600; font-size: 15px; }
.tasks span { font-size: 13.5px; color: var(--muted); }
.tasks input:checked + span b { text-decoration: line-through; color: var(--muted); }
form.diary { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 14.5px; }
.field small { color: var(--muted); font-size: 12.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="time"], input[type="number"], input[type="date"], textarea, select { border: 0; background: var(--ground); border-radius: 12px; padding: 12px 14px; font-size: 16px; width: 100%; box-shadow: inset 0 0 0 1.5px transparent; }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--plum); }
input[type="range"] { width: 100%; accent-color: #173F5F; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.seg button { border: 0; background: var(--ground); border-radius: 12px; padding: 11px 6px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.seg button[aria-pressed="true"] { background: var(--plum); color: #fff; }
.rangeout { font: 500 13px/1 var(--f-mono); color: var(--plum); }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.night { text-align: center; padding: 28px 18px; }
.night .moon { width: 64px; height: 64px; border-radius: 50%; box-shadow: inset -14px 6px 0 0 #F3E7C9; margin: 0 auto 10px; }
.note { background: #FFF6E5; border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #6B4B12; }
.ok { color: var(--ok); }
.list { display: grid; gap: 8px; }
.list .item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: var(--ground); border-radius: 14px; padding: 10px 14px; font-size: 14.5px; }
.list .item button { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
.switch { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.switch input { width: 48px; height: 28px; accent-color: #173F5F; }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--plum); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14.5px; z-index: 20; max-width: 90vw; text-align: center; }
.confirm { display: grid; gap: 10px; background: var(--ruby-soft); border-radius: 16px; padding: 14px; }
@media (max-width: 380px) { .stats { grid-template-columns: 1fr 1fr; } h1 { font-size: 30px; } }
