/* ── Google Fonts ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500&display=swap');

/* ── Design tokens ─────────────────────────────────────────────────── */
#oogzorg-myopie-root {
  --bg:          #FAF7F2;
  --surface:     #FFFFFF;
  --ink:         #1F1B16;
  --ink-2:       #5A5249;
  --ink-3:       #8A8175;
  --line:        #E9E2D6;
  --line-2:      #D9CFBE;
  --accent:      #B8893A;
  --accent-ink:  #7A5A20;
  --accent-soft: #F4ECDC;
  --good:        #3F7A4B;
  --med:         #946A10;
  --warn:        #B5532B;
  --good-bg:     #E8F1EA;
  --med-bg:      #FEF3DC;
  --warn-bg:     #FBE9DF;
  --shadow:      0 1px 2px rgba(31,27,22,.04), 0 8px 24px -12px rgba(31,27,22,.12);
  --radius:      14px;
}

/* ── Reset ──────────────────────────────────────────────────────────── */
#oogzorg-myopie-root *,
#oogzorg-myopie-root *::before,
#oogzorg-myopie-root *::after { box-sizing: border-box; }

#oogzorg-myopie-root {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: var(--bg);
}
#oogzorg-myopie-root button {
  font-family: inherit; cursor: pointer; border: none;
  background: none; color: inherit; padding: 0; margin: 0;
}
#oogzorg-myopie-root input,
#oogzorg-myopie-root select { font-family: inherit; }
#oogzorg-myopie-root h1,
#oogzorg-myopie-root h2,
#oogzorg-myopie-root h3,
#oogzorg-myopie-root h4 { line-height: 1.2; }

/* ── App shell ─────────────────────────────────────────────────────── */
.eom-app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ────────────────────────────────────────────────────────── */
.eom-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 8px;
  gap: 12px;
}
.eom-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
.eom-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex-shrink: 0; display: inline-block;
}
.eom-step-meta {
  font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.eom-topbar-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.eom-home-link {
  font-size: 11px; color: var(--ink-3); text-decoration: none;
  letter-spacing: .03em; opacity: .65; transition: opacity .15s; white-space: nowrap;
}
.eom-home-link:hover { opacity: 1; color: var(--accent); text-decoration: underline; }

/* ── Progress-balk ─────────────────────────────────────────────────── */
.eom-progress { padding: 0 20px; }
.eom-progress-track { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.eom-progress-fill  {
  height: 100%; background: var(--accent); border-radius: 99px;
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}

/* ── Stage ─────────────────────────────────────────────────────────── */
.eom-stage {
  flex: 1; display: flex; flex-direction: column;
  padding: 20px 20px 28px;
  animation: eom-fade .35s ease both;
}
@keyframes eom-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Sticky footer ─────────────────────────────────────────────────── */
.eom-footer-cta {
  position: sticky; bottom: 0;
  background: linear-gradient(180deg, rgba(250,247,242,0) 0%, var(--bg) 30%);
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex; gap: 10px;
}

/* ── Knoppen ───────────────────────────────────────────────────────── */
.eom-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 16px 22px; border-radius: 12px;
  font-weight: 600; font-size: 16px; min-height: 56px; flex: 1;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
}
.eom-btn:active { transform: translateY(1px) scale(.995); }
.eom-btn-primary { background: var(--ink); color: #fff; }
.eom-btn-primary:hover { background: #000; }
.eom-btn-primary:disabled { background: var(--line-2); color: #fff; cursor: not-allowed; }
.eom-btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.eom-btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.eom-home-btn {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; background: transparent; color: var(--ink-3);
  border: 1px solid var(--line); font-size: 13px; width: 100%;
}
.eom-home-btn:hover { border-color: var(--ink-3); color: var(--ink); text-decoration: none; }
.eom-btn-icon { flex: 0 0 56px; min-width: 56px; }

/* ── Intro ─────────────────────────────────────────────────────────── */
.eom-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-ink); font-weight: 600; margin: 0 0 6px;
}
.eom-hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500; font-size: 34px; line-height: 1.08;
  letter-spacing: -.02em; margin: 10px 0 14px;
}
.eom-hero-sub { font-size: 16px; color: var(--ink-2); line-height: 1.55; margin: 0 0 24px; }
.eom-points { display: grid; gap: 12px; margin: 8px 0; }
.eom-point {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
}
.eom-point-num {
  flex: 0 0 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center;
  font-weight: 700; font-family: "Fraunces", serif; font-size: 17px;
}
.eom-point h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.eom-point p  { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.eom-legal { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 14px; }

/* ── Vraag (keuze-opties) ──────────────────────────────────────────── */
.eom-q-meta {
  font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em;
  text-transform: uppercase; font-weight: 600; margin: 0 0 12px;
}
.eom-q-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500; font-size: 24px; line-height: 1.22;
  letter-spacing: -.015em; margin: 0 0 6px;
}
.eom-q-helper { color: var(--ink-2); font-size: 14.5px; margin: 0 0 22px; line-height: 1.5; }

.eom-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-3); font-weight: 500;
  padding: 6px 0; background: none; border: none; cursor: pointer; margin-bottom: 8px;
}
.eom-back-link:hover { color: var(--ink); }

.eom-choices { display: grid; gap: 10px; }
.eom-choice {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.eom-choice:hover  { border-color: var(--line-2); }
.eom-choice:active { transform: scale(.995); }
.eom-choice.selected { border-color: var(--accent); background: var(--accent-soft); }

.eom-choice-dot {
  flex: 0 0 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--bg); transition: inherit;
  display: grid; place-items: center;
}
.eom-choice.selected .eom-choice-dot {
  background: var(--accent); border-color: var(--accent);
}
.eom-choice.selected .eom-choice-dot::after {
  content: '';
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.eom-choice-lab { font-size: 15px; font-weight: 500; color: var(--ink); }

/* ── Contactformulier ──────────────────────────────────────────────── */
.eom-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.eom-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.eom-field input,
.eom-field select {
  padding: 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface); font-size: 16px; color: var(--ink);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 52px; width: 100%;
}
.eom-field input:focus,
.eom-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.eom-field input.has-error,
.eom-field select.has-error { border-color: var(--warn); }
.eom-err { font-size: 12.5px; color: var(--warn); }

.eom-checkbox {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.45;
  padding: 10px 0; cursor: pointer;
}
.eom-checkbox input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--ink);
  margin-top: 1px; cursor: pointer; flex-shrink: 0;
}
.eom-submit-error {
  font-size: 13.5px; color: var(--warn); background: var(--warn-bg);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; line-height: 1.5;
}
.eom-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ── Overzichtsscherm ──────────────────────────────────────────────── */
.eom-review-list { display: grid; gap: 8px; margin-top: 4px; }
.eom-review-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; text-align: left; width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.eom-review-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.eom-review-num {
  flex: 0 0 26px; height: 26px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.eom-review-txt { flex: 1; font-size: 13px; color: var(--ink); line-height: 1.35; }
.eom-review-ans { font-size: 12.5px; color: var(--ink-3); text-align: right; flex-shrink: 0; max-width: 140px; line-height: 1.3; }
.eom-review-pencil { font-size: 14px; color: var(--ink-3); margin-left: 4px; flex-shrink: 0; }

/* ── Resultaat-scherm ──────────────────────────────────────────────── */
.eom-result-hero {
  padding: 26px 22px 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); text-align: center; margin-bottom: 14px;
}
.eom-verdict-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: 6px 12px;
  border-radius: 99px; margin-bottom: 4px;
}
.eom-verdict-pill.good { background: var(--good-bg); color: var(--good); }
.eom-verdict-pill.med  { background: var(--med-bg);  color: var(--med); }
.eom-verdict-pill.warn { background: var(--warn-bg); color: var(--warn); }

.eom-score-ring {
  position: relative; width: 172px; height: 172px; margin: 6px auto 14px;
}
.eom-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.eom-ring-bg { stroke: var(--line); }
.eom-ring-fg {
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(.2,.7,.2,1);
}
.eom-ring-fg.good { stroke: var(--good); }
.eom-ring-fg.med  { stroke: var(--med); }
.eom-ring-fg.warn { stroke: var(--warn); }

.eom-score-num {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.eom-score-big   { font-family: "Fraunces", serif; font-size: 54px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.eom-score-denom { font-size: 22px; color: var(--ink-3); }
.eom-score-label { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.eom-score-range { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

.eom-advice {
  padding: 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px;
}
.eom-advice h3 { margin: 0 0 6px; font-size: 17px; font-family: "Fraunces", serif; font-weight: 500; }
.eom-advice p  { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.eom-cta-inline {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 14px; text-decoration: none;
  font-size: 15px; flex: none; width: 100%; box-sizing: border-box;
}

.eom-breakdown {
  margin-bottom: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.eom-breakdown summary {
  padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.eom-breakdown summary::-webkit-details-marker { display: none; }
.eom-breakdown summary::after { content: "›"; font-size: 22px; color: var(--ink-3); transition: transform .2s ease; }
.eom-breakdown[open] summary::after { transform: rotate(90deg); }
.eom-breakdown ul { list-style: none; padding: 0 16px 14px; margin: 0; display: grid; gap: 8px; }
.eom-breakdown li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; color: var(--ink-2);
  padding: 10px 0; border-top: 1px dashed var(--line);
}
.eom-breakdown li b { font-size: 13px; color: var(--ink); text-align: right; flex-shrink: 0; }

.eom-submitted-mail { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 16px; line-height: 1.5; }

/* ── Verstuurd-scherm ──────────────────────────────────────────────── */
.eom-sent-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 30px 20px;
}
.eom-sent-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent-soft); display: grid; place-items: center;
  margin-bottom: 18px; animation: eom-pop .5s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes eom-pop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.eom-sent-icon svg {
  width: 42px; height: 42px; stroke: var(--accent-ink);
  stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (min-width: 560px) {
  .eom-hero-title { font-size: 40px; }
  .eom-q-title    { font-size: 28px; }
}
