/* ════════════════════════════════════════════════════════════════════
   FRUELLE — stijlen
   Pas hier kleuren, maten en spacing aan. De thema-kleuren staan
   bovenaan als variabelen: verander ze één keer en alles past zich aan.
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* ── basis palet ── */
  --cream: #FBF4ED;
  /* achtergrond app */
  --cream2: #FFFCF8;
  /* lichte tint (coupon) */
  --ink: #3E2C30;
  /* donkere tekst */
  --muted: #9A8781;
  /* grijze tekst */
  --petal: #E2907B;
  /* bloemblaadje roze */
  --petal-l: #F3CFC4;
  /* licht roze */
  --sage-d: #5E8A60;
  /* groen (schaduw) */
  --sage-tx: #345C3C;
  /* groen (tekst/icoon) */

  /* ── thema (worden ook door de Tweaks-panel aangestuurd) ── */
  --accent: #5A1430;
  /* hoofdkleur knoppen + accenten */
  --header: #C7DEC4;
  /* tint van de header bovenaan */
  --btn-radius: 16px;
  /* knop-vorm: 16px = zacht, 999px = pil */
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: #E7DACE;
  font-family: 'Mulish', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* De app vult het scherm op mobiel; op bredere schermen staat hij
   gecentreerd in een telefoon-brede kolom. */
.app-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  min-height: 100vh;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@supports (height: 100dvh) {
  .app-shell {
    height: 100dvh;
    min-height: 100dvh;
  }
}

@media (min-width: 500px) {
  .app-shell {
    box-shadow: 0 30px 80px -30px rgba(70, 40, 40, .35);
  }
}

@media (max-width: 480px) {
  .app-shell {
    padding-bottom: 40px;
  }
}



/* ════════════════════════════════════════════════════════════════════
   SCHERMEN — er is er steeds één zichtbaar
   ════════════════════════════════════════════════════════════════════ */
.screen-stack {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
}

.screen {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  background: var(--cream);
}

.screen.is-active {
  display: flex;
  animation: screenIn .4s ease;
}

/* ── animaties ── */
@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(.9);
  }

  60% {
    transform: scale(1.03);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(900px) rotate(320deg);
  }
}

.fr-rise {
  opacity: 0;
}

.screen.is-active .fr-rise {
  animation: riseIn .55s cubic-bezier(.22, .61, .36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }

  .fr-rise {
    opacity: 1;
  }
}

/* ════════════════════════════════════════════════════════════════════
   HERBRUIKBARE KNOPPEN & ELEMENTEN
   ════════════════════════════════════════════════════════════════════ */
.btn-primary {
  appearance: none;
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 17px 24px;
  border-radius: var(--btn-radius);
  background: var(--accent);
  color: #fff;
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .2px;
  transition: transform .12s ease, background .2s ease, box-shadow .2s;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn-primary:active {
  transform: scale(.975);
}

.btn-primary:disabled {
  cursor: default;
  background: #D9CDC6;
  box-shadow: none;
}

.btn-ghost {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  padding: 12px;
  color: var(--accent);
  opacity: .72;
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 15px;
}

/* bloemblaadje-icoon kleur via currentColor van wrapper */
.petal {
  display: block;
}

/* ── voortgangsbalk (3 stippen) ── */
.progress {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  height: 5px;
  border-radius: 99px;
  width: 10px;
  background: #E4D6CE;
  transition: all .35s ease;
}

.dot.done {
  background: var(--accent);
}

.dot.active {
  width: 26px;
  background: var(--accent);
}

/* ── topbalk ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 70px 22px 8px;
}

.topbar .progress {
  flex: 1;
}

.topbar-back {
  appearance: none;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(80, 40, 40, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topbar-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .3px;
}

.topbar-count .count-tot {
  opacity: .5;
}

/* ════════════════════════════════════════════════════════════════════
   COUPON (gebruikt op start- en e-mailscherm)
   ════════════════════════════════════════════════════════════════════ */
.coupon {
  position: relative;
  margin: 0 2px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, var(--cream2) 100%);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 14px 30px -20px rgba(90, 20, 48, .5);
  display: flex;
  align-items: center;
}

.coupon-amount {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.coupon-pct {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 46px;
  line-height: .92;
  color: var(--accent);
}

.coupon-kr {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--petal);
  margin-top: 2px;
}

.coupon-div {
  width: 1px;
  align-self: stretch;
  border-left: 1.5px dashed color-mix(in srgb, var(--accent) 20%, transparent);
  margin: 14px 0;
}

.coupon-text {
  flex: 1;
  padding: 0 20px;
  font-size: 14.5px;
  line-height: 1.4;
  color: #6E5A55;
  font-weight: 600;
}

.coupon-text strong {
  color: var(--ink);
  font-weight: 800;
}

.coupon-notch {
  position: absolute;
  left: 96px;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--cream);
}

.coupon-notch-t {
  top: -9px;
}

.coupon-notch-b {
  bottom: -9px;
}

/* ════════════════════════════════════════════════════════════════════
   STARTSCHERM
   ════════════════════════════════════════════════════════════════════ */
.start-header {
  position: relative;
  background: var(--header);
  padding-top: 60px;
  padding-bottom: 30px;
}

.petal-deco {
  position: absolute;
}

.petal-deco-1 {
  top: 64px;
  left: 26px;
}

.petal-deco-2 {
  top: 92px;
  right: 34px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  animation-delay: .05s;
}

.logo {
  width: 160px;
  height: auto;
  display: block;
}

.header-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 48px;
  display: block;
}

.start-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 64px 30px 16px;
}

.eyebrow-pill-wrap {
  display: flex;
  justify-content: center;
}

.app-shell[data-trust="0"] .eyebrow-pill-wrap {
  display: none;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #EBDED6;
  box-shadow: 0 6px 16px -12px rgba(80, 40, 40, .5);
}

.eyebrow-text {
  font-size: 13px;
  font-weight: 700;
  color: #7E6B66;
  letter-spacing: .2px;
}

.start-headline {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  color: var(--accent);
  font-size: 33px;
  line-height: 1.08;
  text-align: center;
  margin: 20px 0 0;
  letter-spacing: -.3px;
}

.start-sub {
  text-align: center;
  color: #7E6B66;
  font-size: 15.5px;
  line-height: 1.42;
  margin: 12px auto 0;
  max-width: 290px;
  font-weight: 500;
}

.start-coupon {
  margin-top: auto;
  padding-top: 26px;
}

.start-cta {
  margin: 50px;
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.cta-note span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
   VRAAG-SCHERMEN (Q1 + Q2)
   ════════════════════════════════════════════════════════════════════ */
.q-head {
  padding: 12px 30px 0;
}

.q-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--accent);
  text-transform: uppercase;
}

.q-title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.15;
  margin: 8px 0 4px;
  letter-spacing: -.3px;
}

.q-sub {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
}

.q-grid-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 18px 30px 14px;
  animation-delay: .1s;
}

.q-foot {
  padding: 34px 30px 26px;
  background: var(--cream);
  box-shadow: 0 -10px 18px -14px rgba(80, 40, 40, .25);
}

/* ── smaak-raster + kaartjes ── */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.flavor-card {
  appearance: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #fff;
  transition: all .18s ease;
  border: 2.5px solid #EBDED6;
  box-shadow: 0 4px 14px -10px rgba(80, 40, 40, .3);
}

.flavor-card.is-on {
  border-color: var(--accent);
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--accent) 80%, transparent);
  transform: translateY(-2px);
}

.flavor-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.82;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flavor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flavor-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .8;
}

.flavor-ph span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .8px;
  color: rgba(62, 44, 48, .55);
  text-transform: uppercase;
}

.flavor-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 26px;
  height: 26px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 2px 8px rgba(80, 40, 40, .18);
  transition: all .18s;
  transform: scale(.9);
}

.flavor-card.is-on .flavor-badge {
  background: var(--accent);
  transform: scale(1);
}

.badge-empty {
  width: 13px;
  height: 13px;
  border-radius: 99px;
  border: 2px solid #C9B6AE;
  display: block;
}

.flavor-card.is-on .badge-empty {
  display: none;
}

.flavor-card:not(.is-on) .badge-check {
  display: none;
}

.flavor-card:not(.is-on) .badge-heart-on {
  display: none;
}

.flavor-card.is-on .badge-heart-off {
  display: none;
}

.flavor-meta {
  padding: 11px 13px 13px;
}

.flavor-name {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.15;
}

.flavor-card.is-on .flavor-name {
  color: var(--accent);
}

.flavor-note {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.3;
}

/* ════════════════════════════════════════════════════════════════════
   E-MAILSCHERM
   ════════════════════════════════════════════════════════════════════ */
.email-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 30px 26px;
}

.email-body .q-head {
  padding: 0;
}

.email-mid {
  margin: auto 0;
  animation-delay: .1s;
}

.email-label {
  display: block;
  margin-top: 22px;
}

.email-label-tx {
  font-size: 13px;
  font-weight: 700;
  color: #6E5A55;
  display: block;
  margin-bottom: 8px;
}

.email-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #EBDED6;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  transition: border .18s ease;
}

.email-input.is-valid {
  border-color: var(--accent);
}

.email-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
}

.email-hint span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.email-cta {
  animation-delay: .18s;
}

/* ════════════════════════════════════════════════════════════════════
   BEVESTIGINGSSCHERM
   ════════════════════════════════════════════════════════════════════ */
.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.confetti>div {
  position: absolute;
  top: 0;
}

.done-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 32px 28px;
  position: relative;
  z-index: 4;
  overflow-y: auto;
}

.done-badge {
  width: 78px;
  height: 78px;
  border-radius: 99px;
  background: var(--header);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -14px var(--sage-d);
  margin: 50px 0 0;
}

.screen.is-active .done-badge {
  animation: popIn .6s cubic-bezier(.22, .61, .36, 1) forwards;
}

.done-title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  color: var(--accent);
  font-size: 31px;
  line-height: 1.12;
  text-align: center;
  margin: 22px 0 0;
  letter-spacing: -.3px;
  animation-delay: .1s;
}

.done-title .i {
  font-style: italic;
}

.done-sub {
  text-align: center;
  color: #7E6B66;
  font-size: 15px;
  line-height: 1.5;
  margin: 12px auto 0;
  max-width: 290px;
  font-weight: 500;
  animation-delay: .16s;
}

.done-email {
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #EBDED6;
  font-weight: 800;
  color: var(--ink);
  font-size: 15px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation-delay: .2s;
}

.done-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 14px auto 0;
  max-width: 270px;
  font-weight: 600;
  animation-delay: .24s;
}

.done-cta {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
  animation-delay: .36s;
}

/* ── socials ── */
.socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  animation-delay: .3s;
}

.socials-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
}

.socials-row {
  display: flex;
  gap: 14px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 99px;
  background: #fff;
  border: 1.5px solid #EBDED6;
  box-shadow: 0 6px 16px -12px rgba(80, 40, 40, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .14s ease, border-color .2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: #D9C8C0;
}

.social-btn svg {
  fill: var(--accent);
}

.social-btn svg.stroke-icon {
  fill: none;
  stroke: var(--accent);
}

/* ════════════════════════════════════════════════════════════════════
   WATERMERK
   ════════════════════════════════════════════════════════════════════ */
.watermark {
  display: flex;
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  z-index: 6;
  justify-content: center;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  font-family: 'Mulish', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: rgba(62, 44, 48, .34);
}

.watermark a {
  pointer-events: auto;
  color: rgba(62, 44, 48, .6);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 44, 48, .25);
}

/* ════════════════════════════════════════════════════════════════════
   COMPACTE SCHERMEN (kleine telefoons / lage hoogte)
   Komt overeen met de oude "narrow" modus, maar nu puur via CSS.
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 430px),
(max-height: 720px) {
  .topbar {
    padding: 54px 18px 8px;
  }

  .start-header {
    padding-top: 46px;
    padding-bottom: 20px;
  }

  .petal-deco-1 {
    top: 46px;
    left: 16px;
  }

  .petal-deco-2 {
    top: 76px;
    right: 20px;
  }

  .logo {
    width: 140px;
  }

  .start-body {
    padding: 40px 16px 12px;
  }

  .start-headline {
    font-size: 26px;
    margin-top: 14px;
  }

  .start-sub {
    font-size: 13px;
    margin-top: 10px;
    max-width: 280px;
  }

  .start-coupon {
    padding-top: 6px;
  }

  .start-cta {
    margin: 20px;
  }

  .start-cta .cta-note {
    margin-top: 10px;
  }

  .app-shell {
    padding-bottom: 10px;
  }

  /* gereserveerde ruimte onderaan */
  .q-foot {
    padding: 4px 9px 7px;
  }

  /* laatste getal = ruimte onder de knop */

  .q-head {
    padding: 10px 18px 0;
  }

  .q-title {
    font-size: 24px;
  }

  .q-sub {
    font-size: 13.5px;
  }

  .q-grid-wrap {
    padding: 16px 18px 12px;
  }

  .q-foot {
    padding: 28px 18px 20px;
  }

  .email-body {
    padding: 10px 18px 20px;
  }

  .q-title {
    font-size: 24px;
  }

  /* coupon stapelt verticaal op smalle schermen */
  .coupon {
    flex-direction: column;
    align-items: stretch;
  }

  .coupon-amount {
    padding: 16px 18px 10px;
    align-items: center;
    text-align: center;
  }

  .coupon-pct {
    font-size: 40px;
  }

  .coupon-div {
    width: auto;
    height: 1px;
    border-left: none;
    border-top: 1.5px dashed color-mix(in srgb, var(--accent) 20%, transparent);
    margin: 0 14px;
  }

  .coupon-text {
    padding: 0 18px 16px;
    text-align: center;
  }

  .done-body {
    padding: 44px 18px 20px;
  }

  .done-badge {
    width: 78px;
    margin-top: 22px;
  }

  .done-title {
    font-size: 28px;
  }

  .done-sub {
    font-size: 14px;
  }
}