/* Togimi: rustig, warm, mobiel eerst. Leikleur en oranje uit het logo; per community aan te passen met BRAND_COLOR. */

:root {
  --purple: #24343b;
  --purple-dark: #172429;
  --purple-tint: #e6ecee;
  --purple-tint-2: #eff3f4;
  --ink: #1d2a2f;
  --ink-2: #44525a;
  --ink-3: #34434a;
  --muted: #5b676d;
  --line: #ebe8e3;
  --line-2: #d8d3ca;
  --bg: #f7f6f3;
  --card: #ffffff;
  --green: #3f6b4f;
  --green-dark: #2f5a3e;
  --green-tint: #e3ece5;
  --green-tint-2: #eef3ef;
  --green-ink: #2f3d33;
  --sand: #6b4e1f;
  --sand-tint: #efe6d8;
  --sky: #2e5470;
  --sky-tint: #dce6ee;
  --danger: #b3261e;
  --togimi-orange: #e97d2d;
  --togimi-ink: #202d32;
  --radius: 20px;
  --radius-sm: 14px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ecebe6;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}

.screen {
  max-width: 520px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

@media (min-width: 560px) {
  .screen {
    box-shadow: 0 0 0 1px #e0dbe7, 0 20px 60px rgba(31, 26, 43, 0.08);
  }
}

a {
  color: var(--purple);
}
a:hover {
  color: var(--purple-dark);
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}
.display {
  font-size: 34px;
  line-height: 1.08;
}
p {
  margin: 0;
}
code {
  font-size: 0.9em;
}

/* ---------------------------------------------------------------- opbouw */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 6px;
  min-height: 64px;
}
.topbar-steps {
  padding-top: 10px;
  padding-bottom: 0;
}
.wordmark {
  font-size: 22px;
  font-weight: 750;
  color: var(--purple);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-nav a {
  text-decoration: none;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.content {
  flex: 1 0 auto;
  padding: 16px 24px 24px;
}
.actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 24px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(247, 246, 243, 0.85), var(--bg) 18px);
}

.stack,
.stack-sm,
.stack-xs,
.stack-xxs {
  display: flex;
  flex-direction: column;
}
.stack {
  gap: 20px;
}
.stack-sm {
  gap: 12px;
}
.stack-xs {
  gap: 8px;
}
.stack-xxs {
  gap: 3px;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.grow {
  flex-grow: 1;
  min-width: 0;
}
.center {
  text-align: center;
}

/* ---------------------------------------------------------------- tekst */

.lead {
  font-size: 17px;
  color: var(--ink-2);
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: 14px;
}
.big {
  font-size: 20px;
  font-weight: 700;
}
.kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}
.eyebrow {
  font-size: 13px;
  font-weight: 650;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.muted-link {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.strike {
  text-decoration: line-through;
}
.pre {
  white-space: pre-wrap;
}
.danger-text {
  color: var(--danger) !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flash {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  color: var(--green-ink);
  font-size: 15px;
}
.flash-error {
  background: #f7e3e1;
  color: #6e1a14;
}

/* ---------------------------------------------------------------- pictogrammen */

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon-sm {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.icon-green {
  stroke: var(--green);
}
.btn .icon {
  stroke: currentColor;
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------------- kaarten */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
}
.card-link {
  color: inherit;
  text-decoration: none;
}
.card-link:hover {
  color: inherit;
  box-shadow: 0 0 0 2px var(--purple-tint);
}
.card.is-muted {
  background: #f0edf4;
}
.meeting {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-actions > .inline-form,
.card-actions > .btn-primary {
  flex: 1 1 auto;
}
.card-actions .inline-form .btn {
  width: 100%;
}
.card-actions-later {
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.join-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}
.join-hint .icon {
  width: 20px;
  height: 20px;
}
.duo-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 6px 18px;
}
.info-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child {
  border-bottom: 0;
}
.info-list.plain {
  padding: 0;
}
.info-list.plain li {
  align-items: flex-start;
  border: 0;
  padding: 6px 0;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 15px;
}
.notice .icon {
  margin-top: 1px;
}
.notice-green {
  background: var(--green-tint-2);
  color: var(--green-ink);
}
.notice-green .icon {
  stroke: var(--green);
}
.notice-purple {
  background: var(--purple-tint);
  color: var(--ink-3);
}
.notice-sand {
  background: #f6efe4;
  color: #4d3a1a;
}
.notice-sand .icon {
  stroke: var(--sand);
}
.notice.stack-xs,
.notice.stack-sm {
  display: flex;
  flex-direction: column;
}

.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pill-purple {
  background: var(--purple-tint);
  color: var(--purple);
}
.pill-green {
  background: var(--green-tint);
  color: var(--green-dark);
}
.pill-sand {
  background: var(--sand-tint);
  color: var(--sand);
}
.pill-grey {
  background: var(--line);
  color: var(--ink-2);
}
.pill-dark {
  background: #2a2436;
  color: #d9d2e6;
}

.done-mark {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.done-mark .icon {
  stroke: #fff;
  width: 32px;
  height: 32px;
  stroke-width: 2.4;
}

/* ---------------------------------------------------------------- avatars */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  font-weight: 600;
}
.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.avatar-md {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 24px;
}
.tint-0 {
  background: var(--green-tint);
  color: var(--green-dark);
}
.tint-1 {
  background: var(--sand-tint);
  color: var(--sand);
}
.tint-2 {
  background: var(--sky-tint);
  color: var(--sky);
}
.tint-3 {
  background: #e7e1f0;
  color: var(--purple);
}
.avatar-self {
  background: transparent;
  border: 1px dashed #8a829a;
  color: var(--muted);
  font-size: 13px;
}
.avatar.is-absent {
  opacity: 0.4;
}
.avatar-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.people-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.people-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  min-width: 48px;
}

/* ---------------------------------------------------------------- knoppen */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn:focus-visible,
.chip input:focus-visible + span,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #a98ad6;
  outline-offset: 2px;
}
.btn-block {
  width: 100%;
}
.actions .btn-primary {
  min-height: 56px;
  font-size: 17px;
  border-radius: 16px;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover {
  background: var(--purple-dark);
  color: #fff;
}
.btn-quiet {
  background: var(--purple-tint);
  color: var(--purple);
  font-weight: 600;
}
.btn-quiet:hover {
  background: #e3dbef;
  color: var(--purple-dark);
}
.btn-outline {
  background: #fff;
  border: 1.5px solid var(--purple);
  color: var(--purple);
}
.btn-outline-muted {
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-weight: 500;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
}
.btn-ghost:hover {
  color: var(--ink);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #941f18;
  color: #fff;
}
.btn-sm {
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 12px;
}
.inline-form {
  display: flex;
  margin: 0;
}
.inline-form .btn-block {
  width: 100%;
}
.actions .inline-form {
  flex-direction: column;
}

/* ---------------------------------------------------------------- formulieren */

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='password'],
input[type='date'],
input[type='time'] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
fieldset {
  margin: 0;
  border: 0;
}
.input-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.input-row,
.copy-row {
  display: flex;
  gap: 8px;
}
.input-row input,
.copy-row input {
  flex: 1 1 auto;
  min-width: 0;
}
.copy-row input {
  font-size: 13px;
  color: var(--ink-2);
}

.choice-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
}
.chip input:checked + span {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 600;
}
.chip-green input:checked + span {
  background: var(--green);
  border-color: var(--green);
}

.avail-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.avail-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.avail-day {
  width: 30px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.pref-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pref-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e4dfeb;
}
.pref-list li:last-child {
  border-bottom: 0;
}
.pref-name {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-weight: 600;
}
.pref-chips {
  display: flex;
  gap: 6px;
}
.pref-chips .chip {
  flex: 0 0 auto;
}

.progress {
  display: flex;
  gap: 6px;
  padding: 6px 24px 0;
}
.progress span {
  flex: 1 1 0;
  height: 4px;
  border-radius: 2px;
  background: #ddd6e8;
}
.progress span.is-done {
  background: var(--purple);
}

.toggles {
  padding-top: 4px;
  padding-bottom: 4px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.toggle-row:last-child {
  border-bottom: 0;
}
.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 32px;
  margin: 0;
  border-radius: 999px;
  background: #cfc8da;
  cursor: pointer;
  transition: background 0.15s;
}
.switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.15s;
}
.switch:checked {
  background: var(--green);
}
.switch:checked::before {
  transform: translateX(20px);
}
.switch:focus-visible {
  outline: 3px solid #a98ad6;
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- lijsten */

.list-nav {
  display: flex;
  flex-direction: column;
  padding: 4px 18px;
}
.list-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.list-nav a:last-child {
  border-bottom: 0;
}
.list-nav a .icon {
  stroke: var(--muted);
}
.list-plain {
  list-style: none;
  margin: 0;
  padding: 4px 18px;
}
.list-plain li {
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.list-plain li:last-child {
  border-bottom: 0;
}

.member-list {
  list-style: none;
  margin: 0;
  padding: 4px 16px;
}
.member-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.member-list li:last-child {
  border-bottom: 0;
}
.member-list.compact li {
  padding: 8px 0;
}
.member-list li.is-highlight {
  margin: 0 -10px;
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--purple-tint-2);
}
.member-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-left: 56px;
}
.more summary {
  list-style: none;
  cursor: pointer;
  padding: 0 4px;
}
.more summary::-webkit-details-marker {
  display: none;
}
.more-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 4px;
}
.more-body .btn {
  padding-left: 0;
}
.member-actions .more {
  flex-basis: 100%;
}
.member-actions .btn-primary + .more {
  flex-basis: auto;
}
.status {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.status-green {
  color: var(--green-dark);
}
.status-sand {
  color: var(--sand);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--line);
  color: var(--ink-2);
  font-size: 13px;
}
.stat strong {
  font-size: 26px;
  line-height: 1.1;
}
.stat-green {
  background: var(--green-tint);
  color: var(--green-ink);
}
.stat-green strong {
  color: var(--green-dark);
}
.stat-sand {
  background: var(--sand-tint);
  color: #4d3a1a;
}
.stat-sand strong {
  color: var(--sand);
}

/* ---------------------------------------------------------------- testmodus video */

.theme-dark {
  background: #0f0c15;
}
.theme-dark .screen {
  background: #17131f;
  color: #fff;
}
.theme-dark .actions {
  background: #17131f;
}
.dev-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dev-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: #2a2436;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 3px #7db08c;
}
.dev-name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(23, 19, 31, 0.7);
  font-size: 13px;
}
.dev-note {
  color: #c9c2d6;
}

/* ---------------------------------------------------------------- taal en tijdzones */

.lang-toggle {
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-toggle:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.lang-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--line);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
  vertical-align: middle;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
select:focus-visible {
  outline: 3px solid #a98ad6;
  outline-offset: 2px;
}

.small .icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.tz-list {
  list-style: none;
  margin: 0;
  padding: 4px 16px;
}
.tz-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tz-list li:last-child {
  border-bottom: 0;
}
.tz-now {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tz-time {
  align-items: flex-end;
  text-align: right;
}
.tz-time time {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.icon-sun {
  stroke: #b7791f;
}
.icon-moon {
  stroke: #5e5870;
}
.list-plain.flush {
  padding: 0;
}
.list-plain li {
  display: flex;
  align-items: center;
}

/* ---------------------------------------------------------------- MVP-ronde */

input[type='number'],
input[type='search'],
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
textarea {
  padding: 12px 14px;
  line-height: 1.45;
  resize: vertical;
}
input[type='search'].search {
  background: #fff;
}

/* Verborgen veld tegen spam-bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wordmark-logo img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 180px;
}

/* De intentie van de groep, in de woorden van de facilitator. */
.intention {
  margin: 0;
  border-left: 4px solid var(--purple);
}
.intention blockquote {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}

.quote {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--purple-tint-2);
  color: var(--ink-2);
}

/* Preciezer per dagdeel */
.card.precise-list {
  padding: 4px 18px;
}
.precise-list li,
.precise-row {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.precise-times {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.precise-times select {
  width: auto;
  min-width: 92px;
}

/* Zo werkt het */
.how-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.how-item > .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--purple);
}

.check-card {
  border: 1px solid var(--green-tint);
}
.pending-card {
  border: 1px solid var(--sand-tint);
}

.pref-list li[hidden] {
  display: none;
}

.card.pref-list {
  padding: 2px 16px;
}

/* ------------------------------------------- thema, ritme, voettekst */

.theme-line {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--green-tint-2);
  color: var(--green-ink);
  font-size: 15px;
}
.theme-line .icon {
  flex: none;
  margin-top: 2px;
  color: var(--green);
}
.theme-line a {
  color: var(--green-dark);
  font-weight: 600;
}

.rhythm {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.rhythm li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--line);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.25;
}
.rhythm strong {
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
}

.row-gap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.right {
  text-align: right;
  align-items: flex-end;
}

.site-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.site-footer nav a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.site-footer p {
  margin: 0;
}
.site-footer p a {
  color: var(--ink-2);
  font-weight: 600;
}
.guide-card p {
  margin: 0;
}

/* ------------------------------------------------------------ Togimi */

.product-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 20px 18px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  border-top: 4px solid var(--togimi-orange);
}
.product-logo {
  height: 32px;
  width: auto;
  margin-bottom: 6px;
}
.product-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.product-tagline {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.product-sub {
  font-size: 15px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------ app-gevoel */

/* Tabbalk onderin, binnen de breedte van het scherm. */
.has-tabs .content {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 20;
  display: flex;
  justify-content: space-around;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  padding-top: 6px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.tab .icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
.tab.is-active {
  color: var(--purple);
}
.tab.is-active .icon {
  stroke-width: 2.2;
}
.tab-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.has-tabs .topbar {
  padding-top: 12px;
  min-height: 56px;
}

/* Lijsten met een icoon vooraan. */
.list-nav a > .icon:first-child {
  margin-right: 12px;
  stroke: var(--purple);
}
.list-nav a > .pill:first-child {
  margin-right: 12px;
}
.todo-list a {
  font-weight: 500;
}

/* Uitleg achter een (?). */
.help {
  position: relative;
}
.help summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
}
.help summary::-webkit-details-marker {
  display: none;
}
.help[open] summary {
  background: var(--purple-tint);
  color: var(--purple);
}
.help-body {
  position: absolute;
  right: 0;
  top: 36px;
  z-index: 5;
  width: min(300px, 80vw);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(31, 26, 43, 0.25);
}

/* Groep: wie er meedoen. */
.people-grid {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 14px 8px;
}
.people-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  text-align: center;
}
.people-grid small {
  font-size: 11px;
  margin-top: -4px;
}

.me-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.me-head h1 {
  font-size: 24px;
}

.stat {
  text-decoration: none;
}

.link-button {
  border: 0;
  background: none;
  padding: 6px 0;
  cursor: pointer;
  font: inherit;
}
.install-card {
  border: 1px dashed var(--line-2);
}

[hidden] {
  display: none !important;
}

/* Vaste kopbalk bovenaan, zoals in een app. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: calc(12px + env(safe-area-inset-top));
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
}
.topbar-steps {
  padding-bottom: 10px;
}

.togimi-logo {
  height: 15px;
  width: auto;
  vertical-align: -2px;
}

/* Groepen, mensen en een groepsgenoot. */
.group-dot {
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-tint);
  color: var(--purple);
  font-weight: 700;
}
.group-list a,
.people-list a {
  min-height: 64px;
  gap: 0;
}
.people-list .avatar {
  margin-right: 12px;
}
.person-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding-top: 8px;
}
.person-head h1 {
  margin: 4px 0 0;
}
.facts li {
  gap: 12px;
}
.facts li > span:last-child,
.facts li > a {
  text-align: right;
}
.fold summary {
  list-style: none;
  cursor: pointer;
}
.fold summary::-webkit-details-marker {
  display: none;
}
.fold summary .icon {
  transition: transform 0.2s;
}
.fold[open] summary .icon {
  transform: rotate(90deg);
}
.fold[open] summary {
  margin-bottom: 8px;
}
.list-plain.flush {
  padding: 0;
}
.list-plain.flush li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}

/* Keuze tussen WhatsApp en WhatsApp Business (Android). */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(31, 26, 43, 0.4);
}
.sheet {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: var(--card);
}
.sheet-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

/* Actieve tab: een oranje stip, zoals op de i van Togimi. */
.tab.is-active {
  color: var(--purple);
}
.tab.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--togimi-orange);
}
.wordmark-togimi img {
  height: 26px;
  width: auto;
  display: block;
}

/* ------------------------------------------------------------ homepage */

.screen-wide {
  max-width: 1080px;
  box-shadow: none !important;
}
.home-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 24px 14px;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.screen-wide .content {
  padding: 8px 24px 32px;
}
.home {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.home h2 {
  margin: 0 0 18px;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.home-hero {
  display: grid;
  gap: 36px;
  align-items: center;
  padding-top: 12px;
}
.home-eyebrow {
  color: var(--togimi-orange);
}
.home-title {
  margin: 10px 0 14px;
  font-size: clamp(38px, 9vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--togimi-ink);
}
.home-lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}
.home-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-ctas .btn {
  min-width: 170px;
}
.btn-orange {
  background: var(--togimi-orange);
  border-color: var(--togimi-orange);
  color: var(--togimi-ink);
  font-weight: 700;
}
.btn-orange:hover {
  filter: brightness(1.05);
}

/* Telefoon met "Jouw week". */
.home-phone {
  justify-self: center;
  width: 280px;
  padding: 12px;
  border-radius: 40px;
  background: var(--togimi-ink);
  box-shadow: 0 30px 60px rgba(29, 42, 47, 0.25);
  transform: rotate(2deg);
}
.home-phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 14px 12px;
  border-radius: 30px;
  background: var(--bg);
  font-size: 13px;
}
.home-phone-logo {
  height: 16px;
  width: auto;
}
.home-phone-hi {
  font-size: 20px;
  margin-top: 6px;
}
.home-phone-sub {
  color: var(--muted);
  margin-top: -8px;
}
.home-phone-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}
.home-phone-card strong {
  font-size: 15px;
}
.home-phone-avatars {
  display: flex;
  gap: 4px;
}
.home-phone-avatars i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.home-av-1 { background: #e6e1f2; color: #4b3a7a; }
.home-av-2 { background: #e3ece5; color: #2f5a3e; }
.home-av-3 { background: #f3e5d6; color: #7a4a1c; }
.home-av-4 { background: #e6ecee; color: #24343b; }
.home-phone-theme {
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--green-tint-2);
  color: var(--green-ink);
}
.home-phone-btn {
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
}
.home-phone-tabs {
  display: flex;
  justify-content: space-around;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--togimi-orange);
  font-size: 8px;
}
.home-phone-tabs span {
  width: 20px;
  height: 8px;
}

.home-strip {
  margin: 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--togimi-ink);
  color: #fff;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.home-steps li,
.home-feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
}
.home-steps p,
.home-feature p,
.home-fac p,
.home-cta p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.5;
}
.home-step-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--togimi-orange);
  color: var(--togimi-ink);
  font-weight: 800;
  margin-bottom: 4px;
}
.home-grid {
  display: grid;
  gap: 14px;
}
.home-feature .icon {
  width: 26px;
  height: 26px;
  stroke: var(--togimi-orange);
  margin-bottom: 4px;
}
.home-split {
  display: grid;
  gap: 32px;
}
.home-fac {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
}
.home-fac h2 {
  margin-bottom: 10px;
}
.home-checks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
}
.home-checks .icon {
  flex: none;
  stroke: var(--green);
  margin-top: 2px;
}
.home-cta {
  padding: 36px 24px;
  border-radius: 28px;
  background: var(--purple);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.home-cta h2 {
  margin: 0;
  color: #fff;
}
.home-cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 30em;
}
.home-members {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
}
.home-members p {
  margin: 4px 0 0;
}
.home-member-links {
  display: flex;
  flex-direction: column;
}
.home-member-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.home-member-links a:last-child {
  border-bottom: 0;
}

@media (min-width: 760px) {
  .home {
    gap: 80px;
  }
  .home-hero {
    grid-template-columns: 1.25fr 1fr;
    padding-top: 32px;
  }
  .home-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .home-members {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .home h2 {
    font-size: 32px;
  }
  .home-cta {
    padding: 56px 32px;
  }
}
.home-phone-logo {
  align-self: flex-start;
}
body:has(.screen-wide) {
  background: var(--bg);
}

/* Togi, de shiba. */
.signin-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.signin-head img {
  flex: none;
}
.signin-head h1 {
  margin: 0;
}
.home-visual {
  position: relative;
  justify-self: center;
}
.home-togi {
  position: absolute;
  left: -100px;
  bottom: -30px;
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 10px 18px rgba(29, 42, 47, 0.18));
}
@media (max-width: 759px) {
  .home-togi {
    left: -30px;
    bottom: -40px;
    width: 104px;
    height: 104px;
  }
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.home-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
}
.home-stats strong {
  font-size: 34px;
  line-height: 1;
  color: var(--togimi-orange);
  letter-spacing: -0.02em;
}
.home-stats span {
  color: var(--ink-2);
}
@media (min-width: 760px) {
  .home-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Homepage: een week met Togimi, en vragen. */
.home-week {
  display: grid;
  gap: 16px;
}
.home-week figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-week figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink-2);
}
.home-week figcaption strong {
  color: var(--ink);
}
.hw-shot {
  height: 180px;
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}
.hw-wa {
  background: #e7ddd3;
  align-items: flex-start;
}
.hw-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 2px;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.hw-bubble u {
  color: #1f7aa8;
}
.hw-mail {
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
}
.hw-mail-from {
  color: var(--muted);
  font-size: 12px;
}
.hw-mail strong {
  font-size: 20px;
}
.hw-mail-row {
  color: var(--ink-2);
}
.hw-mail-btns {
  display: flex;
  gap: 6px;
}
.hw-mail-btns i {
  font-style: normal;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.hw-mail-btns i.hw-ghost {
  background: #fff;
  color: var(--purple);
  border: 1px solid var(--line-2);
}
.hw-video {
  position: relative;
  background: #1a262b;
}
.hw-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 100%;
}
.hw-tiles i {
  border-radius: 12px;
  background: linear-gradient(135deg, #2c3d44, #24343b);
}
.hw-tiles i:first-child {
  box-shadow: inset 0 0 0 2px var(--togimi-orange);
}
.hw-video img {
  position: absolute;
  right: 14px;
  bottom: 12px;
}
.home-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-faq h2 {
  margin-bottom: 8px;
}
.home-q {
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 0 18px;
}
.home-q summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  font-weight: 600;
}
.home-q summary::-webkit-details-marker {
  display: none;
}
.home-q summary .icon {
  flex: none;
  transition: transform 0.2s;
}
.home-q[open] summary .icon {
  transform: rotate(90deg);
}
.home-q p {
  margin: 0 0 16px;
  color: var(--ink-2);
  line-height: 1.55;
}
@media (min-width: 760px) {
  .home-week {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-faq {
    max-width: 760px;
  }
}

/* Startlijst en Togi in lege schermen. */
.start-card {
  border: 1px solid var(--line-2);
}
.start-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.start-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.start-list li.is-done {
  color: var(--muted);
  text-decoration: line-through;
}
.start-list li .icon {
  flex: none;
  stroke: var(--green);
}
.start-dot {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px;
  border-radius: 50%;
  border: 2px solid var(--togimi-orange);
}
.empty-togi {
  display: flex;
  align-items: center;
  gap: 14px;
}
.empty-togi img {
  flex: none;
}
