/* ===== Eat Club – converting membership page ===== */
.ec-page {
  background: #fff7ed;
  color: #1c1917;
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.ec-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 247, 237, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #fed7aa;
}
.ec-back {
  color: #c2410c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.ec-nav-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.ec-banner {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
}
.ec-banner.success { background: #dcfce7; color: #166534; }
.ec-banner.cancel { background: #ffedd5; color: #9a3412; }
.ec-banner button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero + video */
.ec-hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.ec-hero-media {
  position: absolute;
  inset: 0;
}
.ec-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ec-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 25, 23, 0.15) 0%,
    rgba(154, 52, 18, 0.25) 40%,
    rgba(28, 25, 23, 0.62) 100%
  );
}
.ec-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 32px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  margin: 0 auto;
  margin-bottom: 55px;
}
.ec-badge {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}
.ec-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdba74;
  margin: 0 0 10px;
}
.ec-hero h1 {
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 12px;
}
.ec-lead {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.95;
  margin: 0 0 16px;
}
.ec-hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  display: grid;
  gap: 8px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.ec-hero-points li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}
.ec-hero-points i {
  color: #4ade80;
}
.ec-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 16px;
}
.ec-price-amt {
  font-size: 1.35rem;
  font-weight: 800;
}
.ec-price-note {
  font-size: 0.8rem;
  opacity: 0.85;
}

.ec-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  background: #ea580c;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.4);
  transition: transform 0.15s, background 0.15s;
  text-decoration: none;
}

.ec-join-btn:hover {
  background: #c2410c;
  transform: scale(1.02);
}
.ec-join-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.ec-join-btn-light {
  background: #fff;
  color: #9a3412;
  box-shadow: none;
  width: auto;
  max-width: none;
}
.ec-secure {
  margin: 12px 0 0;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* Sections */
.ec-section {
  padding: 48px 18px;
  max-width: 960px;
  margin: 0 auto;
}
.ec-section.ec-alt {
  background: #ffedd5;
  max-width: none;
}
.ec-section.ec-alt > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.ec-section h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #9a3412;
  margin: 0 0 8px;
}
.ec-sub {
  text-align: center;
  color: #a16207;
  margin: 0 auto 28px;
}

.ec-benefits {
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .ec-benefits { grid-template-columns: 1fr 1fr; }
}
.ec-benefit {
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 20px;
}
.ec-benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff7ed;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.ec-benefit h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #9a3412;
}
.ec-benefit p {
  margin: 0;
  font-size: 0.9rem;
  color: #78716c;
  line-height: 1.45;
}

.ec-steps {
  display: grid;
  gap: 12px;
}
@media (min-width: 800px) {
  .ec-steps { grid-template-columns: repeat(4, 1fr); }
}
.ec-step {
  background: #fff;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid #fed7aa;
}
.ec-step span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ea580c;
  color: #fff;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.ec-step strong {
  display: block;
  margin-bottom: 6px;
  color: #9a3412;
}
.ec-step p {
  margin: 0;
  font-size: 0.85rem;
  color: #78716c;
}

.ec-offer {
  background: #9a3412;
  color: #fff;
  padding: 36px 18px;
}
.ec-offer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
@media (min-width: 700px) {
  .ec-offer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.ec-offer h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #fff;
}
.ec-offer p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.ec-faq {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.ec-faq details {
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 16px;
}
.ec-faq summary {
  font-weight: 700;
  cursor: pointer;
  color: #9a3412;
}
.ec-faq p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #78716c;
  line-height: 1.45;
}

.ec-finale {
  text-align: center;
  padding: 56px 18px calc(56px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(135deg, #7c2d12, #ea580c);
  color: #fff;
}
.ec-finale h2 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 1.5rem;
}
.ec-finale p {
  margin: 0 auto 20px;
  max-width: 400px;
  opacity: 0.95;
}

.ec-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ec-nav-account {
  color: #c2410c;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.ec-plan-picker {
  display: grid;
  gap: 12px;
  margin: 0 auto 20px;
  max-width: 720px;
}
@media (min-width: 700px) {
  .ec-plan-picker { grid-template-columns: repeat(3, 1fr); }
}
.ec-plan-option { cursor: pointer; }
.ec-plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.ec-plan-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ec-plan-option input:checked + .ec-plan-card {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}
.ec-plan-card strong { color: #9a3412; font-size: 1rem; }
.ec-plan-card em {
  font-style: normal;
  font-size: 1.35rem;
  font-weight: 800;
  color: #c2410c;
}
.ec-plan-card em small { font-size: 0.85rem; font-weight: 500; }
.ec-plan-note { font-size: 0.8rem; color: #a16207; }
.ec-plan-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ea580c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ec-plans-cta {
  text-align: center;
}
.ec-modal-plans {
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.ec-modal-user {
  font-size: 0.9rem;
  color: #44403c;
  margin: 0 0 14px;
  line-height: 1.4;
}
.ec-modal-user span { color: #78716c; font-size: 0.85rem; }
.ec-modal-login-hint {
  background: #fff7ed;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: #9a3412;
  margin-bottom: 12px;
}

/* Modal Overlay */
.ec-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
@media (min-width: 560px) {
  .ec-modal-overlay { align-items: center; }
}

.ec-modal-overlay[hidden] {
  display: none !important;
}

.ec-modal-overlay:not([hidden]) {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.ec-modal {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  padding: 24px 20px 28px;
  z-index: 1;
}

.ec-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #78716c;
  padding: 4px 8px;
}

/* Modal */
.ec-modal {
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  padding: 24px 20px 28px;
  position: relative;
  text-align: center;
}
.ec-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #78716c;
}
.ec-modal-badge {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 8px;
}
.ec-modal h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #9a3412;
}
.ec-modal-sub {
  margin: 0 0 18px;
  color: #a16207;
  font-size: 0.9rem;
}
.ec-modal label {
  display: block;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: #44403c;
  margin-bottom: 12px;
}
.ec-modal input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1.5px solid #e7e5e4;
  border-radius: 12px;
  font-size: 1rem;
}
.ec-modal input:focus {
  outline: none;
  border-color: #ea580c;
}
.ec-modal .ec-join-btn {
  margin-top: 8px;
  max-width: none;
}
.ec-modal-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin: 10px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .ec-hero-media video { display: none; }
  .ec-hero-media {
    background: #9a3412 url("../images/mama-chizzys-eat-club-badge.png") center / cover;
  }
}

/* ===== Sections with side bowls ===== */
.ec-with-bowls {
  position: relative;
  overflow: hidden;
  max-width: none;
  padding-left: 16px;
  padding-right: 16px;
}

.ec-section-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

/* Side columns – desktop only */
.ec-side-bowls {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 1;
}

.ec-side-bowls-left { left: 8px; }
.ec-side-bowls-right { right: 8px; }

.ec-bowl {
  position: absolute;
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.2);
}

/* Positions inside the side column */
.ec-bowl-a { top: 12%; left: 10px; }
.ec-bowl-b { top: 58%; left: 0; }
.ec-bowl-c { top: 18%; right: 10px; }
.ec-bowl-d { top: 62%; right: 0; }

/* Roll in/out loops */
@keyframes ecRollLeft {
  0%   { transform: translateX(-120%) rotate(-40deg); opacity: 0; }
  15%  { transform: translateX(0) rotate(0deg); opacity: 1; }
  50%  { transform: translateX(0) rotate(12deg); opacity: 1; }
  85%  { transform: translateX(0) rotate(-6deg); opacity: 1; }
  100% { transform: translateX(-120%) rotate(-50deg); opacity: 0; }
}

@keyframes ecRollRight {
  0%   { transform: translateX(120%) rotate(40deg); opacity: 0; }
  15%  { transform: translateX(0) rotate(0deg); opacity: 1; }
  50%  { transform: translateX(0) rotate(-12deg); opacity: 1; }
  85%  { transform: translateX(0) rotate(6deg); opacity: 1; }
  100% { transform: translateX(120%) rotate(50deg); opacity: 0; }
}

.ec-side-bowls-left .ec-bowl {
  animation: ecRollLeft 12s ease-in-out infinite;
}
.ec-side-bowls-right .ec-bowl {
  animation: ecRollRight 12s ease-in-out infinite;
}

/* Stagger so they don’t all move together */
.ec-bowl-a { animation-delay: 0s; }
.ec-bowl-b { animation-delay: 3s; }
.ec-bowl-c { animation-delay: 1.5s; }
.ec-bowl-d { animation-delay: 4.5s; }

@media (min-width: 960px) {
  .ec-side-bowls {
    display: block;
  }
  .ec-with-bowls {
    padding-left: 24px;
    padding-right: 24px;
  }
  .ec-bowl {
    width: 120px;
    height: 120px;
  }
}

@media (min-width: 1200px) {
  .ec-side-bowls { width: 160px; }
  .ec-bowl {
    width: 132px;
    height: 132px;
  }
}

/* Reduced motion: static bowls, no roll */
@media (prefers-reduced-motion: reduce) {
  .ec-bowl {
    animation: none !important;
    opacity: 0.9;
    transform: none !important;
  }
}

/* ===== Offer band polish ===== */
.ec-offer {
  background: linear-gradient(135deg, #9a3412 0%, #c2410c 50%, #ea580c 100%);
  color: #fff;
  padding: 40px 18px;
}

.ec-offer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.ec-offer-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdba74;
  margin: 0 0 8px;
}

.ec-offer-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: #fff;
}

.ec-offer-copy p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.95rem;
}

.ec-offer-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.ec-offer-price span {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}

@media (min-width: 720px) {
  .ec-offer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .ec-offer-cta {
    text-align: center;
  }
}