/* Mammoth-dev brand tokens */
:root {
  --cream: #FAF6F0;
  --cream-2: #F4EEE3;
  --russet: #8B5A3C;
  --russet-deep: #6B4530;
  --teal: #4A9B8E;
  --teal-soft: #E6F1EF;
  --gold: #D4A24A;
  --gold-deep: #B88735;
  --charcoal: #2C2824;
  --charcoal-soft: #5A524A;
  --mist: #EFE9E0;
  --mist-2: #E5DED2;
  --white: #FFFDF9;
  --shadow-sm: 0 2px 8px rgba(44, 40, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(44, 40, 36, 0.08);
  --shadow-lg: 0 20px 48px rgba(44, 40, 36, 0.10);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-head: 'Nunito', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.m-root {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  /* Paper texture: subtle noise + fiber */
  background-image:
    radial-gradient(circle at 25% 15%, rgba(139, 90, 60, 0.025) 0%, transparent 40%),
    radial-gradient(circle at 75% 85%, rgba(74, 155, 142, 0.02) 0%, transparent 40%);
}
.m-root::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.35 0 0 0 0 0.23 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.m-root > * { position: relative; z-index: 1; }

.m-root h1, .m-root h2, .m-root h3, .m-root h4, .m-root h5 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.m-root h1 { font-size: clamp(40px, 5.2vw, 68px); letter-spacing: -0.03em; }
.m-root h2 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.02em; }
.m-root h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; }
.m-root h4 { font-size: 19px; font-weight: 700; }

.m-root p { font-size: 17px; color: var(--charcoal-soft); }
.m-root .lead { font-size: 20px; line-height: 1.55; color: var(--charcoal-soft); }

/* Buttons */
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.m-btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 4px 0 var(--gold-deep), 0 8px 20px rgba(212, 162, 74, 0.35);
}
.m-btn-gold:hover { transform: translateY(-1px); background: #DDB05B; }
.m-btn-gold:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep), 0 4px 10px rgba(212, 162, 74, 0.25); }

.m-btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--mist-2);
}
.m-btn-ghost:hover { background: var(--mist); border-color: var(--russet); }

.m-btn-russet {
  background: var(--russet);
  color: var(--white);
}
.m-btn-russet:hover { background: var(--russet-deep); }

.m-btn-lg { padding: 18px 32px; font-size: 18px; }

/* Header */
.m-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--mist);
}
.m-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
}
.m-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--charcoal);
  font-size: 19px;
  letter-spacing: -0.02em;
}
.m-logo-emoji {
  font-size: 26px;
  display: inline-block;
  transform-origin: 60% 80%;
  animation: mammothFloat 4s ease-in-out infinite;
}
.m-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
  flex: 1;
}
.m-nav a {
  color: var(--charcoal-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background .12s, color .12s;
}
.m-nav a:hover, .m-nav a.active { background: var(--mist); color: var(--charcoal); }

/* Layout helpers */
.m-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.m-section {
  padding: 96px 32px;
}
.m-section-sm { padding: 64px 32px; }
.m-section-alt { background: var(--white); }
.m-section-russet { background: var(--russet); color: var(--cream); }
.m-section-russet h1, .m-section-russet h2, .m-section-russet h3 { color: var(--cream); }
.m-section-russet p { color: rgba(255, 253, 249, 0.85); }
.m-section-mist { background: var(--mist); }

.m-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--russet);
  margin-bottom: 12px;
}

.m-grid { display: grid; gap: 24px; }
.m-grid-3 { grid-template-columns: repeat(3, 1fr); }
.m-grid-2 { grid-template-columns: repeat(2, 1fr); }
.m-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.m-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 1px 0 rgba(44, 40, 36, 0.04), 0 4px 16px rgba(139, 90, 60, 0.06);
  border: 1px solid rgba(139, 90, 60, 0.12);
  position: relative;
}
.m-card-lift { transition: transform .18s ease, box-shadow .18s ease; }
.m-card-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--russet);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.m-chip-teal { background: var(--teal-soft); color: var(--teal); }
.m-chip-gold { background: rgba(212, 162, 74, 0.18); color: var(--gold-deep); }

/* Mammoth illustration wrapper (not used with real PNG) */
.m-mammoth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  width: 96px;
  height: 96px;
}
.m-mammoth-sm { font-size: 40px; width: 64px; height: 64px; }
.m-mammoth-lg { font-size: 120px; width: 180px; height: 180px; }
.m-mammoth-xl { font-size: 180px; width: 260px; height: 260px; }

@keyframes mammothFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.m-fade-up { animation: fadeUp .6s cubic-bezier(.2,.7,.3,1) both; }

/* Check list */
.m-checklist { list-style: none; display: grid; gap: 14px; }
.m-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--charcoal);
}
.m-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}

/* Trust strip */
.m-trust-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--mist);
}
.m-trust-strip .logos {
  display: flex;
  gap: 20px;
  flex: 1;
  align-items: center;
}
.m-logo-placeholder {
  height: 28px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--mist);
  color: var(--charcoal-soft);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.01em;
}

/* Illustration placeholder panel */
.m-illus {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(139,90,60,.06), rgba(74,155,142,.06)),
    repeating-linear-gradient(45deg, rgba(139,90,60,.04) 0 10px, transparent 10px 20px),
    var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.m-illus-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(44,40,36,0.7);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* Pricing */
.m-price-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--mist);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.m-price-card.featured {
  background: linear-gradient(180deg, #FFFDF9 0%, #FAF2DF 100%);
  border: 2px solid var(--gold);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.m-price-tier-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--russet);
}
.m-price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.m-price-amount .big {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  line-height: 1;
}
.m-price-amount .cycle { color: var(--charcoal-soft); font-size: 16px; }

.m-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(212,162,74,0.4);
}

/* FAQ */
.m-faq-item {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
}
.m-faq-item[open] { border-color: var(--russet); background: #FFFDF9; }
.m-faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--charcoal);
  gap: 12px;
}
.m-faq-item summary::-webkit-details-marker { display: none; }
.m-faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--russet);
  transition: transform .2s;
}
.m-faq-item[open] summary::after { content: '–'; }
.m-faq-item p { margin-top: 12px; color: var(--charcoal-soft); }

/* CTA band */
.m-cta-band {
  background: var(--gold);
  color: var(--charcoal);
  padding: 72px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--gold-deep);
}
.m-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23B88735' stroke-width='1' opacity='0.25'%3E%3Cpath d='M0 70h140'/%3E%3Cpath d='M70 0v140'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.15;
}
.m-cta-band > * { position: relative; z-index: 1; }
.m-cta-band h2 { color: var(--charcoal); }
.m-cta-band .m-mammoth {
  background: rgba(255,253,249,0.4);
  box-shadow: inset 0 -4px 12px rgba(139,90,60,0.15);
}

/* Footer */
.m-footer {
  background: var(--charcoal);
  color: var(--mist-2);
  padding: 64px 32px 32px;
}
.m-footer a { color: var(--mist-2); text-decoration: none; font-size: 14px; }
.m-footer a:hover { color: var(--gold); }
.m-footer h5 { color: var(--cream); margin-bottom: 14px; font-family: var(--font-head); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Table */
.m-ptable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--mist);
  font-size: 15px;
}
.m-ptable th, .m-ptable td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--mist);
}
.m-ptable th {
  background: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--russet);
}
.m-ptable td:first-child { font-weight: 600; color: var(--charcoal); }
.m-ptable .col-featured { background: rgba(212, 162, 74, 0.08); }
.m-ptable tr:last-child td { border-bottom: none; }

/* Slider */
.m-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--mist);
  outline: none;
}
.m-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(212,162,74,0.4);
}
.m-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(212,162,74,0.4);
}

/* Select */
.m-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--mist-2);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  cursor: pointer;
}
.m-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--mist-2);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}
.m-input:focus { border-color: var(--russet); }

/* Tag */
.m-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--mist);
  color: var(--charcoal-soft);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Scroll CTA bar */
.m-scroll-cta {
  position: sticky;
  bottom: 16px;
  margin: 0 auto;
  max-width: 560px;
  padding: 12px 16px 12px 20px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 999px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(44,40,36,0.25);
  z-index: 30;
}
.m-scroll-cta span { flex: 1; font-size: 14px; }
.m-scroll-cta .close { background: transparent; border: none; color: var(--cream); cursor: pointer; font-size: 20px; padding: 0 6px; opacity: 0.7; }

/* Step */
.m-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--russet);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Timeline */
.m-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  position: relative;
  padding: 32px 0;
}
.m-timeline::before {
  content: '';
  position: absolute;
  top: 56px; left: 8%; right: 8%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--russet) 0 6px, transparent 6px 12px);
}
.m-timeline-node { text-align: center; position: relative; }
.m-timeline-node .dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold);
  margin: 32px auto 16px;
  border: 5px solid var(--cream);
  box-shadow: 0 0 0 1px var(--russet);
  position: relative; z-index: 2;
}

/* Mascot eyes */
.m-mascot-wink { position: relative; display: inline-block; }
.m-mascot-wink::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 45% 42%, rgba(255,255,255,0.3), transparent 30%);
  pointer-events: none;
}

/* Utility */
.m-sp-2 { height: 8px; } .m-sp-4 { height: 16px; } .m-sp-6 { height: 24px; } .m-sp-8 { height: 32px; } .m-sp-12 { height: 48px; } .m-sp-16 { height: 64px; }
.m-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.m-center { text-align: center; }
.m-muted { color: var(--charcoal-soft); }
.m-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }

.m-num-big {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 800;
  color: var(--russet);
  letter-spacing: -0.03em;
  line-height: 1;
}
.m-num-xxl {
  font-family: var(--font-head);
  font-size: 96px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 4px 0 var(--gold-deep);
}

/* Dotted divider */
.m-dots {
  height: 8px;
  background-image: radial-gradient(circle, var(--mist-2) 1.5px, transparent 1.5px);
  background-size: 14px 8px;
}
