/* ============================================
   FROZEN – Premium Gluten-Free Bakery Box
   Redesign: Wildgrain-inspired, warm & editorial
   ============================================ */

:root {
  --bg: #FAF8F4;
  --bg-warm: #F2EDE3;
  --bg-cream: #FFFDF8;
  --bg-dark: #1B2E22;
  --bg-dark-accent: #243A2C;
  --text: #2A2A28;
  --text-secondary: #5E5C57;
  --text-light: #918F89;
  --text-on-dark: #F0EDE4;
  --accent: #3B6B4A;
  --accent-hover: #2D5A3A;
  --accent-light: #E4EFE7;
  --accent-glow: rgba(59, 107, 74, 0.12);
  --warm: #C4734A;
  --warm-hover: #A96038;
  --warm-light: #FEF3EC;
  --gold: #B8963E;
  --gold-light: #FBF6EC;
  --border: #E8E4DC;
  --border-light: #F0ECE4;
  --white: #FFFFFF;
  --error: #C44040;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1240px;
  --content-width: 720px;
  --nav-height: 60px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
input, button { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; }

p { color: var(--text-secondary); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-light), 0 4px 16px rgba(0, 0, 0, 0.03);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-cta {
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border-radius: 100px;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 107, 74, 0.2);
}

.btn-primary:active { transform: translateY(0); }

.btn-warm {
  color: var(--white);
  background: var(--warm);
}

.btn-warm:hover {
  background: var(--warm-hover);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 17px 38px;
  font-size: 1rem;
}

/* --- Badge pill --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 100px;
}

.badge-gold {
  color: var(--gold);
  background: var(--gold-light);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 0;
  background: var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - 24px);
  min-height: calc(100dvh - var(--nav-height) - 24px);
}

.hero-text {
  padding: 24px 0 16px;
  max-width: 560px;
}

.hero-text .badge {
  margin-bottom: 20px;
}

.hero-text h1 {
  margin-bottom: 18px;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(0.975rem, 1.8vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.hero-micro {
  font-size: 0.8rem;
  color: var(--text-light);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   USP STRIP
   ============================================ */
.usp-strip {
  padding: 0;
  margin-top: 48px;
  margin-bottom: 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-cream);
}

.usp-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  justify-content: flex-start;
}

.usp-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 8px;
  color: var(--accent);
}

.usp-icon svg { width: 16px; height: 16px; }

.usp-text {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.usp-text span {
  display: block;
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 1px;
}

/* ============================================
   HOW IT WORKS – Wildgrain-style numbered steps
   ============================================ */
.steps-section {
  background: var(--bg-warm);
  padding: 48px 0 64px;
}

.steps-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.step {
  text-align: left;
}

.step-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

.step p {
  font-size: 0.85rem;
  max-width: 280px;
  line-height: 1.6;
}

/* ============================================
   THE BOX – Card + Form side-by-side
   ============================================ */
.box-section {
  background: var(--white);
  padding: 72px 0 56px;
}

.box-header {
  text-align: center;
  margin-bottom: 40px;
}

.box-header h2 {
  margin-bottom: 12px;
}

.box-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Side-by-side wrapper */
.box-duo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}

/* Box Card */
.plan-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.plan-name {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.plan-contents {
  margin-bottom: 16px;
}

.plan-contents p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.plan-card .box-pills {
  margin-bottom: 20px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-bottom: 4px;
}

.plan-price-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.plan-price-per {
  font-size: 0.9rem;
  color: var(--text-light);
}

.plan-shipping {
  font-size: 0.75rem;
  color: var(--text-light);
}

.box-pills {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.box-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 100px;
}

/* Form */
.box-form {
  padding: 32px 28px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.box-form-title {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin-bottom: 12px;
}

.box-form-lead {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.box-form-lead strong {
  color: var(--text);
}

.box-form-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box-form-input-wrap {
  position: relative;
}

.box-form-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.box-form-input::placeholder { color: var(--text-light); }
.box-form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); background: var(--white); }
.box-form-input.error { border-color: var(--error); box-shadow: 0 0 0 4px rgba(196, 64, 64, 0.08); }

.box-form-error {
  font-size: 0.78rem;
  color: var(--error);
  text-align: left;
  margin-top: 4px;
  display: none;
}

.box-form-error.visible { display: block; }

.box-form-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.box-form-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.box-form-btn:active { transform: translateY(0); }
.box-form-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.box-form-micro {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* Success state */
.box-form-success { display: none; padding: 12px 0; text-align: center; }
.box-form-success.visible { display: block; }

.box-form-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.box-form-success-icon svg { width: 22px; height: 22px; color: white; }

.box-form-success h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.box-form-success p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   TRUST BADGES – compact strip
   ============================================ */
.trust-section {
  background: var(--white);
  padding: 64px 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 50%;
  color: var(--accent);
}

.trust-icon svg { width: 20px; height: 20px; }

.trust-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================
   BOTTOM CTA REMINDER
   ============================================ */
.bottom-cta {
  background: var(--bg-dark);
  padding: 40px 0;
  text-align: center;
}

.bottom-cta-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-on-dark);
  opacity: 0.7;
  transition: var(--transition);
}

.bottom-cta-link:hover {
  opacity: 1;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-brand {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.4);
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-size: 0.8rem;
  color: rgba(240, 237, 230, 0.45);
  transition: var(--transition);
}

.footer-links a:hover { color: rgba(240, 237, 230, 0.75); }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-d1 { transition-delay: 0.08s; }
.fade-in-d2 { transition-delay: 0.16s; }
.fade-in-d3 { transition-delay: 0.24s; }
.fade-in-d4 { transition-delay: 0.32s; }

/* ============================================
   RESPONSIVE – Tablet (640px+)
   ============================================ */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  section { padding: 88px 0; }

  .usp-strip-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .usp-item {
    padding: 20px 12px;
    justify-content: center;
  }

  .usp-icon { width: 36px; height: 36px; border-radius: 10px; }
  .usp-icon svg { width: 18px; height: 18px; }
  .usp-text { font-size: 0.8rem; }
  .usp-text span { font-size: 0.72rem; }

  .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }

  .box-form-col { flex-direction: column; }

  .footer .container { flex-direction: row; justify-content: space-between; }
}

/* ============================================
   RESPONSIVE – Desktop (900px+)
   ============================================ */
@media (min-width: 900px) {
  .container { padding: 0 48px; }
  section { padding: 100px 0; }

  .hero {
    padding-right: 0;
  }

  .hero .container {
    max-width: none;
    padding-right: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    min-height: calc(100vh - var(--nav-height));
  }

  .hero-text {
    padding: 40px 0;
    max-width: 560px;
  }

  .hero-image {
    aspect-ratio: 3 / 4;
    max-height: 640px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  }

  .steps-section { padding: 56px 0 72px; }
  .steps-section h2 { margin-bottom: 48px; }

  .box-section { padding: 88px 0 72px; }

  .box-duo {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    max-width: 820px;
  }

  .box-duo .plan-card,
  .box-duo .box-form {
    flex: 1;
  }

  .plan-card { padding: 36px 32px; }
  .box-form { padding: 36px 32px; }
}

/* ============================================
   RESPONSIVE – Large (1100px+)
   ============================================ */
@media (min-width: 1100px) {
  .container { padding: 0 60px; }

  .hero-grid { gap: 64px; }
  .hero-text { padding: 56px 0; max-width: 580px; }
  .hero .container { padding-left: 60px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}
