/* Design tokens — Sonnenterrasse Wilder Kaiser (handoff README §Design Tokens) */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --amber: #f0a623; --amber-light: #ffd57a; --amber-deep: #e8952b;
  --amber-text: #c07c0e; --amber-dark: #8a5a10; --amber-tint: #fef3dd;
  --amber-label: #a97c22;
  --slate: #57606d; --ink: #16212c;
  --text-2: #6b7581; --muted: #8d94a0; --disabled: #9aa2ac; --text-3: #3c4652;
  --bg: #f8f7f4; --bg-seg: #ecedee; --track: #e2e6ea; --track-2: #e8eaec;
  --bg-closed: #f3f4f5; --border-closed: #c4cad1; --border-chip: #d6dadf;
  --green: #1e7a46; --green-bg: #e6f4ec; --red: #d2493a;
  --font-ui: 'Instrument Sans', -apple-system, sans-serif;
  --font-num: 'Space Grotesk', monospace;
  --shadow-row: 0 1px 4px rgba(30,40,50,.05);
  --shadow-pill: 0 6px 20px rgba(20,30,42,.4);
  --shadow-dock: 0 6px 24px rgba(30,40,50,.18);
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  font-family: var(--font-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button { font-family: var(--font-ui); cursor: pointer; }

.phone { max-width: 520px; margin: 0 auto; min-height: 100dvh;
  display: flex; flex-direction: column; position: relative; }

/* segmented control */
.seg { display: flex; gap: 3px; background: var(--bg-seg); border-radius: 12px; padding: 3px; }
.seg > button { flex: 1; border: none; background: transparent; border-radius: 9px;
  font: 600 13px var(--font-ui); color: var(--text-2); padding: 8px 12px; min-height: 38px;
  white-space: nowrap; }
.seg > button.active { background: #fff; color: var(--ink);
  box-shadow: 0 1px 3px rgba(30,40,50,.12); }

/* cards */
.card { background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: 16px;
  box-shadow: var(--shadow-row); }

/* time slider card */
.slider-card { padding: 12px 16px 13px; }
.slider-head { display: flex; align-items: baseline; justify-content: space-between; }
.slider-time { display: flex; align-items: baseline; gap: 8px; }
.slider-time b { font: 700 22px var(--font-num); color: var(--ink); }
.slider-time span { font: 500 12.5px var(--font-ui); color: var(--muted); }
.now-btn { font: 600 13px var(--font-ui); color: var(--amber-dark); background: var(--amber-tint);
  border: none; border-radius: 10px; padding: 7px 14px; min-height: 36px; }
.slider-wrap { position: relative; height: 40px; margin-top: 6px; }
.slider-track { position: absolute; top: 15px; left: 0; right: 0; height: 10px; border-radius: 6px;
  background: linear-gradient(90deg,#57606d 0%,#c8cdd4 7%,#ffd57a 22%,#f0a623 50%,#e8952b 72%,#8d94a0 90%,#57606d 100%); }
.now-tick { position: absolute; top: 15px; width: 2px; height: 10px; background: rgba(22,33,44,.55); }
.slider-wrap input[type=range] { position: absolute; inset: 0; width: 100%; height: 40px;
  -webkit-appearance: none; appearance: none; background: transparent; margin: 0; }
.slider-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none;
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--amber);
  background: radial-gradient(circle, var(--amber) 0 5.5px, #fff 6px);
  box-shadow: 0 3px 10px rgba(30,40,50,.25); }
.slider-wrap input[type=range]::-moz-range-thumb {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--amber);
  background: radial-gradient(circle, var(--amber) 0 5.5px, #fff 6px);
  box-shadow: 0 3px 10px rgba(30,40,50,.25); }
.slider-axis { display: flex; justify-content: space-between;
  font: 600 11px var(--font-num); color: var(--muted); margin-top: 3px; }

/* toggle chips */
.chip { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  font: 600 13.5px var(--font-ui); color: var(--text-3); background: #fff;
  border: 1.5px solid var(--border-chip); border-radius: 12px; padding: 9px 0; min-height: 42px; }
.chip.active { color: var(--amber-dark); background: var(--amber-tint); border-color: var(--amber); }
.chip.active::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* section headers */
.sec-head { font: 600 12px var(--font-ui); color: var(--muted);
  letter-spacing: .05em; margin: 14px 4px 6px; }

/* hut rows */
.row { padding: 13px 16px; display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit; }
.row .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dot.sun { background: radial-gradient(circle at 38% 34%, var(--amber-light), var(--amber) 70%);
  box-shadow: 0 0 7px 1px rgba(240,166,35,.6); }
.dot.shade { background: var(--slate); }
.dot.closed { background: #fff; border: 2px solid var(--disabled); position: relative; }
.dot.closed::after { content: ""; position: absolute; left: -2px; top: 4px; width: 14px; height: 2px;
  background: var(--disabled); transform: rotate(-45deg); }
.row-main { flex: 1; min-width: 0; }
.row-name { font: 700 17px var(--font-ui); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { font: 500 13px var(--font-ui); color: var(--text-2); }
.row-right { text-align: right; flex: none; }
.row-until { font: 700 17px var(--font-num); color: var(--amber-text); }
.row-note { font: 600 12px var(--font-ui); color: var(--muted); }
.row-note.late { color: var(--red); }
.row-shade { font: 700 15px var(--font-num); color: var(--slate); }
.row.closed-row { background: var(--bg-closed); border: 1.5px dashed var(--border-closed);
  border-radius: 16px; box-shadow: none; opacity: .92; }
.row.closed-row .row-name { color: var(--text-2); }

/* floating pill */
.float-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 700;
  display: flex; align-items: center; gap: 8px; font: 600 15px var(--font-ui); color: #fff;
  background: var(--ink); border: none; border-radius: 26px; padding: 14px 24px; min-height: 48px;
  box-shadow: var(--shadow-pill); text-decoration: none; }

/* detail tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: 14px; padding: 11px 14px; }
.tile.amber { background: var(--amber-tint); border-color: transparent; }
.tile-label { font: 600 10.5px var(--font-ui); color: var(--muted); letter-spacing: .06em; }
.tile.amber .tile-label { color: var(--amber-label); }
.tile-value { font: 700 20px var(--font-num); color: var(--ink); }
.tile.amber .tile-value { color: var(--amber-text); }
.tile-sub { font: 500 11.5px var(--font-ui); color: var(--text-2); }
.tile.amber .tile-sub { color: var(--amber-label); }
.tile-sub.ok { color: var(--green); }

.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: #fff;
  border: 1px solid rgba(0,0,0,.07); display: flex; align-items: center; justify-content: center;
  font: 600 17px var(--font-ui); color: var(--text-3); text-decoration: none; flex: none; }

/* woordmerk: "terras<i></i>l" — de laatste o is de zon (schaalt via font-size) */
.wm { font-weight: 700; letter-spacing: -.02em; display: inline-flex;
  align-items: center; color: var(--ink); font-family: var(--font-ui); }
.wm i { width: .72em; height: .72em; border-radius: 50%; margin: .14em .06em 0;
  background: radial-gradient(circle at 38% 34%, var(--amber-light), var(--amber) 72%);
  box-shadow: 0 0 .4em .1em rgba(240,166,35,.5); }
.wm.on-dark { color: #fff; }
.area-sub { font: 600 11px var(--font-num); letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase; }

/* vlakke mono-zon in de zwevende pill (10px, geen gloed) */
.float-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber); flex: none; }
