/* ============================================================
   CHICKSLOVEFOOD MEMBERSHIP — shared styles
   ============================================================ */

:root {
  --cream: #f5f1f0;
  --cream-deep: #e9e2df;
  --green: #3a4b41;
  --green-deep: #2c3a32;
  --green-soft: #4d6155;
  --coral: #ca7865;
  --coral-deep: #b5634f;
  --coral-soft: #e0a496;
  --ink: #000000;
  --ink-soft: #4a4a47;

  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Lato", system-ui, -apple-system, sans-serif;
  --font-script: "Nothing You Could Do", cursive;

  --shadow-soft: 0 6px 20px rgba(58, 75, 65, .12);
  --shadow-lift: 0 18px 48px rgba(58, 75, 65, .18);
  --shadow-card: 0 6px 12px -6px rgba(58, 75, 65, .10);

  --container: 1200px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ---- layout ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 1024px) {
  .container { padding-left: 40px; padding-right: 40px; }
}

/* ---- shared type helpers ---- */
.kicker {
  font-family: var(--font-script);
  color: var(--coral);
  font-size: 30px;
  line-height: 1;
  display: inline-block;
}
@media (min-width: 1024px) { .kicker { font-size: 36px; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  transition: background-color .2s ease, box-shadow .25s ease, transform .15s ease;
}
.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-coral:hover { background: var(--coral-deep); box-shadow: var(--shadow-lift); }
.btn-lg { font-size: 18px; padding: 16px 36px; }
.btn-sm { font-size: 14px; padding: 12px 24px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 2px solid rgba(0, 0, 0, .2);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.text-link:hover { border-color: var(--coral); }
.text-link .arrow { transition: transform .2s ease; }
.text-link:hover .arrow { transform: translateY(2px); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 240, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(233, 226, 223, .7);
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo { height: 40px; width: auto; }
@media (min-width: 1024px) { .header-logo { height: 48px; } }
.header-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav-link:hover { color: var(--ink); }
@media (max-width: 639px) { .nav-link.hide-mobile { display: none; } }
.back-link { font-size: 14px; font-weight: 700; color: var(--ink-soft); transition: color .2s ease; }
.back-link:hover { color: var(--ink); }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) {
  .hero-inner { padding-top: 96px; padding-bottom: 96px; }
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}
.hero-copy { max-width: 36rem; position: relative; }
.hero-title {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--ink);
  margin-top: 12px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: 40px;
}
@media (min-width: 640px) { .hero-title { font-size: 48px; } }
@media (min-width: 1024px) { .hero-title { font-size: 60px; } }
.hero-title .line { display: block; }
.hero-title .accent { color: var(--coral); }
.hero-intro {
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
  margin-top: 32px;
}
@media (min-width: 1024px) { .hero-intro { font-size: 20px; } }
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  position: relative;
}

/* hero photo */
.hero-media { position: relative; }
.hero-media-shape {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 66%;
  height: 66%;
  border-radius: 40px;
  background: rgba(224, 164, 150, .5);
  z-index: 0;
  transform: rotate(6deg);
}
.hero-photo-frame {
  position: relative;
  z-index: 10;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.price-badge {
  position: absolute;
  z-index: 20;
  bottom: -20px;
  left: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 16px 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
@media (min-width: 1024px) { .price-badge { left: -20px; } }
.price-badge .amount {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--coral);
  font-size: 30px;
}
@media (min-width: 1024px) { .price-badge .amount { font-size: 36px; } }
.price-badge .per {
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ============ BENEFITS ============ */
.benefits {
  padding-top: 48px;
  padding-bottom: 32px;
}
@media (min-width: 1024px) {
  .benefits { padding-top: 80px; padding-bottom: 48px; }
}
.benefits-head { text-align: center; max-width: 42rem; margin: 0 auto; }
.benefits-title {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.15;
  margin-top: 8px;
}
@media (min-width: 1024px) { .benefits-title { font-size: 48px; } }
.benefits-grid {
  display: grid;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--cream-deep);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 36px;
}
.benefit-icon { width: 80px; height: 80px; transform-origin: 50% 85%; }
@media (prefers-reduced-motion: no-preference) {
  .benefit-card:hover .benefit-icon,
  .benefit-card:focus-within .benefit-icon {
    animation: clf-icon-wiggle .6s ease-in-out;
  }
}
@keyframes clf-icon-wiggle {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-9deg); }
  40%  { transform: rotate(7deg); }
  60%  { transform: rotate(-5deg); }
  80%  { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}
.benefit-card h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 24px;
}
.benefit-card p {
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
  margin-top: 8px;
}

/* ============ DASHBOARD BLOCK ============ */
.dashboard-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) {
  .dashboard-section { padding-top: 96px; padding-bottom: 96px; }
}
.dashboard-panel {
  background: var(--green);
  border-radius: 32px;
  box-shadow: var(--shadow-lift);
  padding: 48px 28px 28px;
}
@media (min-width: 1024px) {
  .dashboard-panel { padding: 64px 64px 40px; }
}
.dashboard-head .kicker { color: var(--coral-soft); }
.dashboard-title {
  font-family: var(--font-title);
  font-weight: 700;
  color: #fff;
  font-size: 36px;
  line-height: 1.15;
  margin-top: 8px;
}
@media (min-width: 1024px) {
  .dashboard-title { font-size: 48px; white-space: nowrap; }
}
.dashboard-intro {
  font-weight: 300;
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 42rem;
}
@media (min-width: 1024px) { .dashboard-intro { font-size: 20px; } }
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
  margin-top: 40px;
}
@media (min-width: 1024px) {
  .feature-row { grid-template-columns: repeat(4, 1fr); }
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(77, 97, 85, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.feature-ic svg { width: 20px; height: 20px; }
.feature-text { display: flex; flex-direction: column; gap: 4px; }
.feature span.label {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}
.feature .feature-desc {
  font-weight: 300;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.dashboard-image { margin-top: 40px; }
.dashboard-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .22);
}

/* ============ CONVERSION ============ */
.conversion {
  background: var(--green);
  position: relative;
  overflow: hidden;
}
.conversion-inner {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}
@media (min-width: 1024px) {
  .conversion-inner { padding-top: 112px; padding-bottom: 112px; }
}
.conversion h2 {
  font-family: var(--font-title);
  font-weight: 800;
  color: #fff;
  font-size: 36px;
  line-height: 1.15;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .conversion h2 { font-size: 60px; } }
.conversion .lead {
  font-weight: 300;
  color: rgba(255, 255, 255, .85);
  font-size: 20px;
  margin-top: 24px;
}
@media (min-width: 1024px) { .conversion .lead { font-size: 24px; } }
.conversion .lead .price {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--coral-soft);
  display: inline-block;
}
.conversion .btn { margin-top: 36px; }
.conversion .fineprint {
  font-weight: 300;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
  margin-top: 20px;
}
.conversion-doodle {
  position: absolute;
  right: 96px;
  top: 64px;
  width: 160px;
  transform: rotate(170deg);
  opacity: .9;
  pointer-events: none;
  filter: brightness(0) saturate(100%) invert(54%) sepia(18%) saturate(1352%) hue-rotate(317deg) brightness(91%) contrast(82%);
}
@media (max-width: 1023px) { .conversion-doodle { display: none; } }

/* ============ FOOTER ============ */
.site-footer { background: var(--green-deep); }
.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }
.footer-logo { height: 28px; width: auto; }
.footer-copy {
  font-weight: 300;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
}

/* ============ ENTRANCE ANIMATIONS ============ */
@media (prefers-reduced-motion: no-preference) {
  body.anim .reveal { opacity: 0; transform: translateY(16px); animation: clf-fade-up .7s cubic-bezier(.22,.61,.36,1) forwards; animation-delay: var(--d, 0s); }
  body.anim .reveal-photo { opacity: 0; transform: translateX(28px) scale(1.03); animation: clf-photo-in 1s cubic-bezier(.22,.61,.36,1) forwards; animation-delay: .15s; }
  body.anim .reveal-badge { opacity: 0; transform: scale(.86); animation: clf-pop .55s cubic-bezier(.34,1.4,.5,1) forwards; animation-delay: 1.05s; }

  body.anim .benefit-reveal {
    opacity: 0;
    transform: translateY(30px) rotate(var(--r, 0deg));
    transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--d, 0s);
  }
  body.anim .benefit-reveal.in-view { opacity: 1; transform: translateY(0) rotate(0deg); }
  body.anim .benefit-icon {
    opacity: 0;
    transform: scale(.6);
    transition: opacity .45s ease, transform .55s cubic-bezier(.34,1.55,.5,1);
    transition-delay: calc(var(--d, 0s) + .3s);
  }
  body.anim .benefit-reveal.in-view .benefit-icon { opacity: 1; transform: scale(1); }

  body.anim .dash-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--d, 0s);
  }
  body.anim .dash-reveal.in-view { opacity: 1; transform: translateY(0); }

  body.anim .conv-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--d, 0s);
  }
  body.anim .conv-reveal.in-view { opacity: 1; transform: translateY(0); }

  body.anim .conv-price {
    display: inline-block;
    opacity: 0;
    transform: scale(.6);
  }
  body.anim .conversion-inner.in-view .conv-price {
    animation: clf-pop .6s cubic-bezier(.34,1.5,.5,1) forwards;
    animation-delay: .5s;
  }
}
@keyframes clf-fade-up { to { opacity: 1; transform: translateY(0); } }
@keyframes clf-photo-in { to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes clf-pop { 0% { opacity: 0; transform: scale(.86); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }

/* ============ AANMELDEN PAGE ============ */
.signup-main { flex: 1; width: 100%; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 1024px) { .signup-main { padding-top: 80px; padding-bottom: 80px; } }
.signup-grid {
  display: grid;
  gap: 48px;
  align-items: start;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .signup-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.signup-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  margin-top: 8px;
}
@media (min-width: 1024px) { .signup-title { font-size: 48px; } }
.signup-price { display: flex; align-items: baseline; gap: 4px; margin-top: 24px; }
.signup-price .amount { font-family: var(--font-title); font-weight: 800; color: var(--coral); font-size: 48px; }
.signup-price .per { font-weight: 300; color: var(--ink-soft); font-size: 18px; }
.perk-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.perk-list li { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.perk-list .check { color: var(--coral-deep); font-weight: 700; }
.signup-card {
  background: #fff;
  border: 1px solid var(--cream-deep);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 32px;
}
@media (min-width: 1024px) { .signup-card { padding: 40px; } }
.signup-card h2 { font-family: var(--font-title); font-weight: 700; font-size: 24px; }
.signup-form { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field input {
  width: 100%;
  border: 1px solid var(--cream-deep);
  background: rgba(245, 241, 240, .4);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(202, 120, 101, .2);
}
.field input.is-invalid {
  border-color: #dc2626;
}
.signup-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { font-weight: 300; color: var(--ink-soft); font-size: 14px; text-align: center; }
.signup-footer-inner { padding-top: 32px; padding-bottom: 32px; display: flex; align-items: center; justify-content: center; }
body.signup-body { min-height: 100vh; display: flex; flex-direction: column; }

/* Error messages */
.clf-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 4px;
}
.clf-errors p { font-weight: 700; font-size: 14px; color: #dc2626; margin-bottom: 8px; }
.clf-errors ul { margin: 0; padding-left: 20px; }
.clf-errors ul li { font-size: 14px; color: #dc2626; }

/* ============ WELKOM PAGE ============ */
body.welkom-body { min-height: 100vh; display: flex; flex-direction: column; }
.welkom-main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 72px;
}
.welkom-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--cream-deep);
  border-radius: 32px;
  box-shadow: var(--shadow-lift);
  max-width: 620px;
  width: 100%;
  padding: 56px 40px 48px;
  text-align: center;
}
@media (min-width: 1024px) { .welkom-card { padding: 64px 64px 56px; } }

.welkom-mark {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
}
.welkom-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ink);
  margin-top: 6px;
}
@media (min-width: 1024px) { .welkom-title { font-size: 52px; } }
.welkom-title .accent { color: var(--coral); }
.welkom-intro {
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
  max-width: 30rem;
  margin: 20px auto 0;
}
.welkom-intro strong { font-weight: 700; color: var(--ink); }

.welkom-mail {
  margin: 24px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  color: var(--ink-soft);
}
.welkom-mail .info-ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--coral); }

.welkom-steps {
  margin-top: 36px;
  display: grid;
  gap: 14px;
  text-align: left;
}
@media (min-width: 600px) { .welkom-steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: 18px;
  padding: 18px 18px 20px;
}
.step .num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 22px;
  color: var(--coral);
  line-height: 1;
}
.step .step-title { font-weight: 700; font-size: 15px; margin-top: 8px; color: var(--ink); }
.step .step-text { font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin-top: 4px; }

.welkom-cta { margin-top: 36px; }
.welkom-cta .btn { justify-content: center; }
.welkom-sub {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.welkom-sub:hover { color: var(--coral); }

@media (prefers-reduced-motion: no-preference) {
  .welkom-anim { opacity: 0; transform: translateY(14px); animation: clf-rise .55s ease forwards; animation-delay: var(--d, 0s); }
  .welkom-mark.welkom-anim { transform: scale(.6); animation: clf-pop .5s cubic-bezier(.34,1.4,.64,1) forwards; animation-delay: var(--d, 0s); }
}
@keyframes clf-rise { to { opacity: 1; transform: translateY(0); } }
