/* Alan Watts Academy app · stijl volgens de mockups van november 2026
   Lichtgele achtergrond, navy titels, oranje primaire knoppen, zachte kaarten. */
:root {
  --bg: #FAF4E6;
  --bar1: #FBF0D8;
  --bar2: #F3E2BF;
  --card: #FFFBF3;
  --card-2: #FFF9F2;
  --line: #E8DCC4;
  --line-2: #D9CBB0;
  --navy: #1B2440;
  --ink: #2C2C2C;
  --muted: #6E6659;
  --orange: #B5452A;
  --orange-dark: #9D3A22;
  --orange-soft: #F6E1D3;
  --teal: #315B56;
  --teal-bg: #E5EFEB;
  --sand: #786033;
  --sand-bg: #F5E9CE;
  --terra: #9D4D34;
  --terra-bg: #F8E9E2;
  --radius: 18px;
  --font: 'Montserrat', 'Avenir Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tabs-h: 72px;
  --shadow: 0 6px 18px rgba(80, 60, 20, 0.08), 0 1px 2px rgba(80, 60, 20, 0.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  background-image: radial-gradient(circle at 85% 20%, rgba(27, 36, 64, 0.035), transparent 45%), radial-gradient(circle at 10% 90%, rgba(181, 69, 42, 0.05), transparent 40%);
}
a { color: var(--orange); }
button { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* Bovenbalk */
.top {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; min-height: 64px;
  background: linear-gradient(180deg, var(--bar1), var(--bar2)); border-bottom: 1px solid var(--line-2);
  box-shadow: 0 2px 10px rgba(80, 60, 20, 0.06);
}
.top__logo { height: 26px; width: auto; display: block; justify-self: start; }
.top__title { font-size: 21px; font-weight: 600; color: var(--navy); text-align: center; letter-spacing: 0.01em; }
.top__bell {
  justify-self: end; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(80, 60, 20, 0.08);
}
.top__bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }

main { max-width: 640px; margin: 0 auto; padding: 18px 18px 24px; }
.lead { text-align: center; color: var(--muted); margin: 0 0 16px; font-size: 15px; line-height: 1.45; }
.lead.left { text-align: left; margin: 0; }
.section-h { font-size: 22px; font-weight: 700; margin: 20px 0 12px; }
.feed-label { text-align: center; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); font-weight: 700; margin: 4px 0 16px; opacity: 0.85; }

/* Kaarten */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__h { font-size: 19px; font-weight: 700; }
.card__p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.alert-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; margin-bottom: 8px; }
.alert-card .btn { flex: none; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--navy); padding: 11px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 15px; }
.btn--primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--primary:active { background: var(--orange-dark); }
.btn--outline { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn--block { width: 100%; padding: 15px 18px; font-size: 17px; }
.btn--small { padding: 8px 14px; font-size: 13px; }
.btn.is-on { background: var(--teal-bg); border-color: var(--teal); color: var(--teal); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* Feed */
.feed { display: flex; flex-direction: column; gap: 14px; }
.item { position: relative; border-radius: var(--radius); padding: 16px 18px 16px 20px; border: 1px solid rgba(0, 0, 0, 0.05); box-shadow: var(--shadow); overflow: hidden; }
.item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; }
.item--quote { background: var(--teal-bg); }
.item--quote::before { background: var(--teal); }
.item--mindset { background: var(--sand-bg); }
.item--mindset::before { background: var(--sand); }
.item--quiz { background: var(--terra-bg); }
.item--quiz::before { background: var(--terra); }
.item.is-highlight { outline: 2px solid var(--orange); }
.item__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.item__badge { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; flex: none; }
.item--quote .item__badge { background: var(--teal); }
.item--mindset .item__badge { background: var(--sand); }
.item--quiz .item__badge { background: var(--terra); }
.item__badge svg { width: 16px; height: 16px; fill: currentColor; }
.item__type { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.item--quote .item__type { color: var(--teal); }
.item--mindset .item__type { color: var(--sand); }
.item--quiz .item__type { color: var(--terra); }
.item__quote { font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.3; margin: 0; }
.item__attr { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.item__title { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.item__text { margin: 0; font-size: 16px; color: var(--ink); }
.item__q { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 12px; line-height: 1.3; }

.options { display: grid; gap: 9px; }
.option {
  text-align: left; background: var(--card-2); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--navy);
  display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 16px;
}
.option__letter { width: 30px; height: 30px; border-radius: 50%; background: var(--terra-bg); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; color: var(--terra); }
.option:not(:disabled):hover { border-color: var(--terra); }
.option:disabled { cursor: default; opacity: 0.7; }
.option.is-correct { background: var(--teal-bg); border-color: var(--teal); opacity: 1; }
.option.is-correct .option__letter { background: var(--teal); color: #fff; }
.option.is-wrong { background: #F3D9CF; border-color: var(--terra); opacity: 1; }
.option.is-wrong .option__letter { background: var(--terra); color: #fff; }
.result { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.7); font-size: 14px; color: var(--ink); }
.result strong { display: block; margin-bottom: 2px; color: var(--navy); }
.result--good { background: var(--teal-bg); }

/* Video's */
.video { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow); padding: 18px; }
.video__thumb { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0f1a30; position: relative; border: 0; padding: 0; cursor: pointer; border-radius: 12px; overflow: hidden; }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__thumb::after { content: ''; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center/34px no-repeat; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.video__frame { aspect-ratio: 16 / 9; width: 100%; border: 0; display: block; background: #000; border-radius: 12px; }
.video__title { font-size: 19px; font-weight: 700; margin: 14px 0 0; color: var(--navy); }
.video__meta { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

/* Diensten */
.list { padding: 4px 18px; margin-bottom: 14px; }
.service { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 16px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; }
.service h3 { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.service p { margin: 0; font-size: 15px; color: var(--ink); }
.service svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Over */
.about .card { padding: 20px 20px 18px; margin-bottom: 16px; }
.about h2 { font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.about p { margin: 0 0 10px; font-size: 16px; }
.about .more { display: none; }
.about .card.is-open .more { display: block; }
.about .more img { max-width: 100%; height: auto; display: block; border-radius: 12px; margin: 6px auto 14px; }
.about .more img.portrait { width: 150px; border-radius: 50%; }
.about .more ul { padding-left: 20px; }
.about .more li { margin-bottom: 6px; }
.about .more dt { font-weight: 700; color: var(--navy); margin-top: 10px; }
.about .more dd { margin: 2px 0 0; }
.about blockquote { margin: 12px 0; padding: 12px 16px; border-left: 4px solid var(--sand); background: var(--sand-bg); border-radius: 0 12px 12px 0; font-size: 16px; color: var(--navy); }
.about blockquote cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 6px; }
.about .card.is-open .less, .about .card:not(.is-open) .more { display: none; }
.about .card.is-open .readmore { display: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--orange); font-weight: 700; cursor: pointer; font-size: inherit; }

/* Formulier */
.form { padding: 18px 18px 20px; margin-bottom: 14px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: 14px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #8E877A; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field--trap { position: absolute; left: -9999px; top: -9999px; }
.form__status { margin: 12px 0 0; font-size: 15px; }
.form__status.is-ok { color: var(--teal); font-weight: 600; }
.form__status.is-error { color: var(--orange); }
.form__status .linkbtn { margin-left: 6px; }

/* Meldingen-kaart op Immerse */
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.notice h3 { font-size: 18px; font-weight: 700; }
.notice p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.notice ol { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink); }
.notice ol li { margin-bottom: 4px; }
.notice .share-icon { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.notice__hint { flex-basis: 100%; font-size: 13px; color: var(--ink); margin: 6px 0 0; }

/* Tabs */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--card); border-top: 1px solid var(--line-2);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(80, 60, 20, 0.05);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.tab__icon { width: 46px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.tab.is-active { color: var(--navy); font-weight: 700; }
.tab.is-active .tab__icon { background: var(--orange-soft); }
.tab.is-active svg { stroke: var(--orange); }
@media (min-width: 700px) { .tabs { max-width: 640px; left: 50%; transform: translateX(-50%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* Instellingen (bel) */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(27, 36, 64, 0.4); display: flex; align-items: flex-end; justify-content: center; }
.sheet__panel { background: var(--bg); width: 100%; max-width: 640px; border-radius: 22px 22px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet__panel h2 { font-size: 22px; margin-bottom: 12px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.setting-row b { display: block; color: var(--navy); }
.setting-row span { display: block; font-size: 13px; color: var(--muted); }
.install-hint { margin: 8px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.sheet__panel .btn--block { margin-top: 12px; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }

/* Richard (buiten deze versie, code blijft) */
.rb-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.rb-head__av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: var(--shadow); }
.tracker { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.tracker summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tracker summary::-webkit-details-marker { display: none; }
.tracker__title { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--teal); }
.tracker__mini { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tracker__bar { display: inline-block; width: 90px; height: 8px; border-radius: 999px; background: var(--sand-bg); overflow: hidden; position: relative; }
.tracker__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--orange), #E08A5C); transform-origin: left; transition: transform 0.6s ease; }
.tracker__bar--big { width: 100%; height: 12px; margin: 6px 0 14px; }
.tracker__body { padding: 0 16px 14px; border-top: 1px solid var(--line); }
.tracker__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 10px; }
.stages { list-style: none; padding: 0; margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.stages li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.stages li.past { text-decoration: line-through; opacity: 0.6; }
.stages li.now { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 600; }
.graves { list-style: none; padding: 0; margin: 6px 0 0; }
.graves li { font-size: 14px; padding: 6px 0; border-top: 1px dashed var(--line); display: flex; gap: 8px; }
.graves li.empty { color: var(--muted); border: 0; font-size: 13px; }
.graves em { font-style: normal; font-size: 10px; letter-spacing: 0.1em; font-weight: 700; color: var(--orange); margin-left: 6px; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.msg--me { align-self: flex-end; flex-direction: row-reverse; }
.msg__av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.bubble { background: var(--card); border-radius: 16px 16px 16px 4px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 15px; }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.msg--me .bubble { background: var(--teal); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble--thinking { color: var(--muted); font-style: italic; }
.chat__err { color: var(--orange); font-size: 14px; margin: 0 0 10px; }
.composer { display: flex; gap: 8px; align-items: flex-end; background: var(--card); border-radius: 18px; padding: 6px 6px 6px 14px; border: 1.5px solid var(--line-2); }
.composer textarea { flex: 1; border: 0; background: transparent; resize: none; font: inherit; font-size: 15px; padding: 8px 0; max-height: 140px; outline: none; }
.composer__send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rb-foot { margin-top: 12px; }
.view--off { text-align: center; padding: 24px 0; color: var(--muted); }

/* Reminders v0.4: achterkant met uitleg, likes, quiz met meerdere antwoorden */
.item { transition: transform 200ms ease-in; }
.item.is-turning { transform: perspective(900px) rotateY(90deg); }
.item.is-turning-in { transform: perspective(900px) rotateY(-90deg); transition: none; }
.item:not(.is-turning) { transition-timing-function: ease-out; }
.item__head { min-height: 40px; }
.item__head .flip { margin-left: auto; }
.flip {
  width: 40px; height: 40px; border-radius: 50%; flex: none; cursor: pointer; padding: 0; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff; box-shadow: 0 2px 5px rgba(120, 45, 20, 0.28);
  transition: background-color 120ms ease, transform 120ms ease;
}
.flip svg { width: 24px; height: 24px; }
.flip--info svg { fill: currentColor; }
.flip--close svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (hover: hover) { .flip:hover { background: var(--orange-dark); } }
.flip:active { transform: scale(0.94); }
.flip:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.like:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.item__mind { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.3; margin: 0; }
.item__expl, .result__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.result__text { font-size: 14px; line-height: 1.5; }
.item__expl a, .result__text a { color: var(--orange); font-weight: 600; }
.item__foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.result .item__foot { margin-top: 8px; }
.like {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 13px; font-weight: 700; padding: 8px 6px 8px 10px; margin: -8px -6px -8px 0; border-radius: 999px; min-height: 40px;
}
.like svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.like.is-on { color: var(--orange); }
.like.is-on svg { fill: currentColor; }
.like.is-pop svg { animation: like-pop 320ms ease-out; }
@keyframes like-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.options__hint { margin: -4px 0 2px; font-size: 14px; color: var(--muted); }
.options__check { margin-top: 4px; justify-self: start; }
.option.is-picked { border-color: var(--terra); background: #FBEFE9; }
.option.is-picked .option__letter { background: var(--terra); color: #fff; }
.option.is-picked:disabled { opacity: 1; }
.option.is-correct.is-picked { border-color: var(--teal); background: var(--teal-bg); }
.option.is-correct.is-picked .option__letter { background: var(--teal); }
@media (prefers-reduced-motion: reduce) { .item { transition: none; } .like.is-pop svg { animation: none; } }
.item__quote.is-mid { font-size: 18px; line-height: 1.38; }
.item__quote.is-long { font-size: 16px; line-height: 1.5; font-weight: 600; }

/* Privacyverklaring (privacy.html) en de links ernaartoe */
body.doc { padding-bottom: env(safe-area-inset-bottom); }
.doc__card { padding: 22px 20px; }
.doc__card h2 { font-size: 24px; margin-bottom: 4px; }
.doc__card h3 { font-size: 17px; margin: 22px 0 6px; }
.doc__card p, .doc__card li, .doc__card dd { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.doc__card p { margin: 0 0 10px; }
.doc__card ul { margin: 0 0 10px; padding-left: 20px; }
.doc__card li { margin-bottom: 6px; }
.doc__list { margin: 0 0 10px; }
.doc__list dt { font-weight: 700; color: var(--navy); margin-top: 10px; font-size: 15px; }
.doc__list dd { margin: 2px 0 0; }
.doc__card a.btn { text-decoration: none; margin-top: 12px; }
.doc .top__bell { text-decoration: none; }
.sheet__privacy { margin-top: 8px; }
.view > .muted.center.small { margin-top: 14px; }
