/* =========================================================
   Potato Gateway — Design System
   Considered pink theme: warm blush + deep rose + dusty mauve
   + champagne gold accent for the premium tier.
   ========================================================= */

:root {
  --bg: #FFF8F5;
  --bg-alt: #FDF6F3;
  --surface: #FFFFFF;
  --primary: #C9184A;
  --primary-dark: #A01240;
  --primary-tint: #FBE4EA;
  --secondary: #E8B4BC;
  --secondary-tint: #F6E4E7;
  --gold: #D4A574;
  --gold-tint: #F5EADC;
  --text: #2B1D22;
  --text-muted: #6b5a5f;
  --border: #F0DEE1;

  --font-display: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Caveat', cursive;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 26px -10px rgba(201, 24, 74, 0.22);
  --shadow-card: 0 3px 14px -6px rgba(201, 24, 74, 0.14);

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.script-accent {
  font-family: var(--font-script);
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--primary); text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header (mobile-first: hamburger + dropdown by default) ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}
.brand {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-toggle:hover { background: var(--secondary-tint); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 8px 20px 18px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
}
.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-nav a {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  border-bottom: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav a:hover, .site-nav a:active { color: var(--primary); background: var(--primary-tint); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(43, 29, 34, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

@media (min-width: 681px) {
  .site-header__inner { padding: 18px 24px; }
  .brand { font-size: 1.9rem; }
  .nav-toggle, .nav-backdrop { display: none; }
  .site-nav {
    position: static;
    flex-direction: row;
    gap: 28px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav a { padding: 0 0 4px; border-bottom: 2px solid transparent; }
  .site-nav a:hover { background: none; border-color: var(--secondary); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 36px 0;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.admin-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
}
.admin-shortcut:hover {
  opacity: 1;
  color: var(--primary);
  background: var(--primary-tint);
  transform: rotate(75deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--primary); border: 1.5px solid var(--secondary); }
.btn-secondary:hover { background: var(--secondary-tint); }
.btn-gold { background: var(--gold); color: #3a2a17; }
.btn-gold:hover { background: #c4935e; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Kawaii decorations ---------- */
.blob {
  position: absolute;
  border-radius: 43% 57% 61% 39% / 51% 44% 56% 49%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: blob-morph 9s ease-in-out infinite;
}
@keyframes blob-morph {
  0%, 100% { border-radius: 43% 57% 61% 39% / 51% 44% 56% 49%; }
  50% { border-radius: 57% 43% 39% 61% / 44% 56% 49% 51%; }
}
.sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  animation: sparkle-twinkle 2.6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.75) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}
.mascot {
  width: fit-content;
  margin: 0 auto 10px;
  animation: mascot-float 3.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px rgba(201,24,74,0.18));
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

.blob--1 { top: -60px; left: -40px; width: 220px; height: 220px; background: var(--secondary-tint); }
.blob--2 { top: 20px; right: -60px; width: 180px; height: 180px; background: var(--gold-tint); animation-delay: 1.5s; }
.blob--3 { bottom: -70px; left: 30%; width: 200px; height: 200px; background: var(--primary-tint); animation-delay: 3s; }

.sparkle--1 { top: 12%; left: 10%; }
.sparkle--2 { top: 22%; right: 12%; animation-delay: 0.6s; width: 16px; height: 16px; }
.sparkle--3 { bottom: 14%; left: 18%; animation-delay: 1.2s; width: 18px; height: 18px; }
.sparkle--4 { bottom: 20%; right: 16%; animation-delay: 0.3s; }

@media (max-width: 480px) {
  .blob { display: none; }
}

/* ---------- Gateway (landing) ---------- */
.gateway-hero {
  position: relative;
  padding: 72px 0 64px;
  text-align: center;
  overflow: hidden;
}
.gateway-hero__decor { position: absolute; inset: 0; z-index: 0; }
.gateway-hero > .container { position: relative; z-index: 1; }
.gateway-hero .mascot { margin: 0 auto 8px; }
.gateway-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  max-width: 720px;
  margin: 0 auto 0.4em;
}
.gateway-hero p.lede {
  max-width: 560px;
  margin: 0 auto 2.5em;
  font-size: 1.1rem;
}
.gateway-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .gateway-actions { grid-template-columns: 1fr; }
}
.gateway-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.gateway-card:hover {
  transform: translateY(-8px) rotate(-1deg) scale(1.02);
  box-shadow: var(--shadow-soft);
  border-color: var(--secondary);
}
.gateway-card:hover .gateway-card__icon {
  transform: scale(1.12) rotate(6deg);
}
.gateway-card__icon {
  width: 60px; height: 60px;
  border-radius: 43% 57% 61% 39% / 51% 44% 56% 49%;
  background: linear-gradient(145deg, var(--primary-tint) 0%, var(--secondary-tint) 100%);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px -2px rgba(201,24,74,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gateway-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.2em;
}
.gateway-card p { font-size: 0.92rem; margin-bottom: 0; }
.gateway-card__cta {
  margin-top: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

/* ---------- Section headers ---------- */
.section-hero {
  position: relative;
  padding: 64px 0 40px;
  text-align: center;
  overflow: hidden;
}
.section-hero > .container { position: relative; z-index: 1; }
.section-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.section-hero h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.section-hero p { max-width: 560px; margin: 0 auto; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 20px 0 56px; }
.testimonials__eyebrow {
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 0;
}
.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 16px;
}
.testimonial-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
}
.testimonial-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary) 0%, #FF6F9C 100%);
  border: 2px solid #fff;
  box-shadow: 0 3px 8px -1px rgba(201,24,74,0.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.testimonial-card__name { display: block; font-weight: 600; font-size: 0.9rem; }
.testimonial-card__role { display: block; font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Pricing / course cards ---------- */
.tier-grid, .course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 72px;
}
@media (max-width: 900px) {
  .tier-grid, .course-grid { grid-template-columns: 1fr; }
}
.tier-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.tier-card--premium {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-tint) 0%, var(--surface) 22%);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.tier-card--premium:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow-soft); }
.tier-card--premium::before {
  content: "✨ Top Tier";
  position: absolute;
  top: -14px; right: 24px;
  background: var(--gold);
  color: #3a2a17;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 8px -2px rgba(212,165,116,0.6);
  animation: sparkle-twinkle 3s ease-in-out infinite;
}
.tier-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.tier-card__price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.tier-card--premium .tier-card__price { color: #a3742f; }
.tier-card__desc { font-size: 0.92rem; margin-bottom: 18px; }
.tier-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text);
}
.tier-card__list li {
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.tier-card__list li:last-child { border-bottom: none; }
.tier-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.tier-card--premium .tier-card__list li::before { color: #a3742f; background: var(--gold-tint); }
.tier-card__includes {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.tier-card__includes p { margin: 0 0 4px; }
.tier-card__includes p:last-child { margin-bottom: 0; }

.price-strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1rem;
  margin-right: 8px;
  font-family: var(--font-body);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto 72px;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error {
  background: #FBE4E4;
  border: 1px solid #E3A0A0;
  color: #8C2323;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-success {
  background: #E4F5E9;
  border: 1px solid #A0D9B4;
  color: #1F6B3A;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* segmented button group (Onboard form) */
.segmented {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  transition: all 0.15s ease;
}
.segmented input:checked + label {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 4px 10px -3px rgba(201,24,74,0.4);
}
.segmented label, .plan-option label { transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* plan-select cards inside booking form */
.plan-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
@media (max-width: 600px) { .plan-select { grid-template-columns: 1fr; } }
.plan-option { position: relative; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option label {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  font-size: 0.88rem;
  background: var(--bg-alt);
  transition: all 0.15s ease;
}
.plan-option label strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.plan-option input:checked + label {
  border-color: var(--primary);
  background: var(--primary-tint);
}

.qr-box {
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.qr-box img { max-width: 200px; border-radius: var(--radius-sm); }
.qr-box .amount { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary); margin-top: 8px; }

.file-preview {
  margin-top: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 220px;
}
.file-preview img { width: 100%; display: block; }

/* ---------- Course module accordion ---------- */
.modules { margin-top: 16px; }
.module-item {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.module-item:first-child { border-top: none; }
.module-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.module-item p { font-size: 0.85rem; margin: 0; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg-alt); min-height: 100vh; }
.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-bottom: 28px;
}
.admin-header__inner { display: flex; justify-content: space-between; align-items: center; }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}
.admin-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.admin-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.filter-chip.active { background: var(--secondary-tint); border-color: var(--secondary); color: var(--text); font-weight: 600; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.admin-table th { background: var(--bg-alt); font-weight: 600; color: var(--text-muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }
.admin-table tr:last-child td { border-bottom: none; }
.badge { padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; display: inline-block; }
.badge-pending, .badge-new { background: #FFF3CD; color: #8A6D1D; }
.badge-accepted, .badge-converted { background: #E4F5E9; color: #1F6B3A; }
.badge-rejected, .badge-archived { background: #FBE4E4; color: #8C2323; }
.badge-contacted { background: var(--primary-tint); color: var(--primary-dark); }
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
}
.admin-login-card {
  width: 100%;
  max-width: 380px;
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.admin-login-card h2 { text-align: center; }
.status-form { display: inline-flex; gap: 6px; }
.status-form select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 0.82rem; }
.status-form button { padding: 6px 12px; border-radius: 8px; border: none; background: var(--primary); color: #fff; font-size: 0.82rem; cursor: pointer; }
.screenshot-link { color: var(--primary); font-weight: 600; font-size: 0.85rem; }
