/* Misses Bee Garden — marketing.css
   2026 system: fluid type, container-aware grids, motion respect, AA contrast. */

/* ── Self-hosted serif (Lora variable) ───────────────────────────────── */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local('Lora'),
       url('/app/assets/fonts/lora-variable.woff2') format('woff2-variations'),
       url('/app/assets/fonts/lora-variable.woff2') format('woff2');
}

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* palette */
  --cream:        #FAF7F2;
  --cream-warm:   #F4EFE6;
  --cream-edge:   #E8E0D2;
  --sage-soft:    #C5D1C0;
  --sage:         #8FA68E;
  --sage-deep:    #5C7355;
  --moss:         #4A5D43;
  --honey:        #D4A574;
  --terracotta:   #C4856E;
  --text:         #2D3328;
  --text-muted:   #5C6359;     /* WCAG AA on cream */
  --text-faint:   #8A8F82;
  --on-dark:      #FAF7F2;

  /* type */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* fluid scale (clamp from mobile to desktop) */
  --step-0: clamp(.94rem, .9rem + .2vw, 1rem);       /* 15→16 */
  --step-1: clamp(1.05rem, 1rem + .25vw, 1.13rem);   /* lede small */
  --step-2: clamp(1.18rem, 1.1rem + .4vw, 1.31rem);  /* lede large */
  --step-3: clamp(1.45rem, 1.3rem + .8vw, 1.69rem);  /* h3 */
  --step-4: clamp(1.85rem, 1.5rem + 1.6vw, 2.5rem);  /* h2 */
  --step-5: clamp(2.4rem, 1.8rem + 3vw, 4rem);       /* h1 */

  /* spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;

  /* radii / shadow */
  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-4: 22px;
  --shadow-sm: 0 1px 2px rgba(45, 51, 40, .06);
  --shadow-md: 0 6px 24px rgba(45, 51, 40, .08);
  --shadow-lg: 0 18px 60px rgba(45, 51, 40, .12);

  /* layout */
  --max-w: 1100px;
  --max-w-narrow: 720px;

  /* motion */
  --ease-soft: cubic-bezier(.2, .65, .25, 1);
  --t-1: 180ms;
  --t-2: 320ms;
  --t-3: 600ms;
}

/* ── Reset / base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-decoration: none; transition: color var(--t-1); }
a:hover { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--moss); margin: 0 0 var(--s-4); line-height: 1.18; letter-spacing: -.005em; font-weight: 600; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
p  { margin: 0 0 var(--s-4); }
.muted { color: var(--text-muted); }

/* ── Skip-link ──────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 8px;
  background: var(--moss); color: var(--on-dark);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 8px; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.m-wrap { max-width: var(--max-w); margin: 0 auto; padding-inline: clamp(20px, 4vw, 32px); }
.m-narrow { max-width: var(--max-w-narrow); margin-inline: auto; }
.row { display: flex; gap: var(--s-4); align-items: center; }
.row.between { justify-content: space-between; }
.center { text-align: center; }

/* ── Topbar ─────────────────────────────────────────────────────────── */
.m-topbar {
  position: sticky; top: 0; z-index: 20;
  padding-block: 14px;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-2), box-shadow var(--t-2);
}
.m-topbar[data-stuck="true"] {
  border-bottom-color: var(--cream-edge);
  box-shadow: var(--shadow-sm);
}
/* Mobile-first defaults: every part of the topbar must fit on one line at
   ~360px viewport. We keep brand text visible (it's the brand), but tighten
   font, gaps, and pad. .btn-mini and .m-nav-link both nowrap so they never
   stack into two-line "Get / started" or "Sign / in" text. */
.m-topbar .m-wrap.row.between { gap: 8px; }
.m-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); color: var(--moss);
  font-size: 15px; font-weight: 600; line-height: 1.15;
  white-space: nowrap;
  min-width: 0;       /* lets the brand shrink rather than blow the row out */
}
.m-brand > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-brand:hover { text-decoration: none; color: var(--moss); }
.m-mark { width: 26px; height: 26px; color: var(--sage-deep); flex: 0 0 auto; }
.m-nav { display: flex; gap: 4px; align-items: center; flex: 0 0 auto; }
.m-nav-link {
  color: var(--text-muted); font-weight: 500;
  padding: 7px 8px; border-radius: 8px;
  white-space: nowrap; font-size: 14px;
}
.m-nav-link:hover { color: var(--sage-deep); text-decoration: none; background: var(--cream-warm); }

/* Tablet and up — restore the more generous topbar treatment */
@media (min-width: 720px) {
  .m-topbar .m-wrap.row.between { gap: var(--s-4); }
  .m-brand { font-size: 18px; gap: 10px; }
  .m-mark { width: 30px; height: 30px; }
  .m-nav { gap: var(--s-3); }
  .m-nav-link { padding: 8px 12px; font-size: 15px; }
}

/* Very narrow phones (~340px and under) — drop the "Sign in" link;
   "Get started" still leads them to a page that has a sign-in link. */
@media (max-width: 359px) {
  .m-topbar .m-nav-link { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn, .btn-ghost, .btn-mini, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 22px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-1) var(--ease-soft), background var(--t-1), border-color var(--t-1), box-shadow var(--t-1), color var(--t-1);
  min-height: 48px;
  line-height: 1.2;
}
.btn, .btn-primary { background: var(--sage-deep); color: var(--on-dark); }
.btn:hover, .btn-primary:hover { background: var(--moss); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--on-dark); }
.btn:active, .btn-primary:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--sage-deep); border-color: color-mix(in srgb, var(--sage-deep) 20%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--sage-deep) 10%, transparent); text-decoration: none; transform: translateY(-1px); }

.btn-mini {
  padding: 8px 12px; font-size: 13px; min-height: 36px;
  background: var(--sage-deep); color: var(--on-dark); border-radius: 9px;
  white-space: nowrap;
}
.btn-mini:hover { background: var(--moss); text-decoration: none; color: var(--on-dark); }
@media (min-width: 720px) {
  .btn-mini { padding: 9px 16px; font-size: 14px; min-height: 38px; border-radius: 10px; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(560px, 78svh, 820px);
  isolation: isolate;
  overflow: clip;
  display: flex; align-items: center;
  padding-block: clamp(72px, 10vw, 120px);
  color: var(--on-dark);
  background: var(--moss) url("/assets/img/hero.jpg") center/cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(.95) contrast(.95);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 20% 30%, rgba(45,51,40,.55) 0%, rgba(45,51,40,.25) 45%, transparent 75%),
    linear-gradient(180deg, rgba(45,51,40,.15) 0%, rgba(45,51,40,.5) 100%);
  z-index: -1;
}
.hero-content { max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-serif); font-style: italic;
  font-size: var(--step-1);
  color: color-mix(in srgb, var(--on-dark) 88%, transparent);
  margin-bottom: var(--s-4);
  letter-spacing: .01em;
}
.hero h1 {
  color: var(--on-dark);
  font-size: var(--step-5);
  text-wrap: balance;
  margin-bottom: var(--s-4);
  text-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.hero .lede {
  font-size: var(--step-2);
  color: color-mix(in srgb, var(--on-dark) 92%, transparent);
  max-width: 620px;
  margin-bottom: var(--s-6);
  text-wrap: pretty;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.hero .cta-row { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.hero .btn-primary { background: var(--cream); color: var(--moss); }
.hero .btn-primary:hover { background: #fff; color: var(--moss); }
.hero .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.45); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); color: var(--on-dark); }
.hero-foot {
  margin-top: var(--s-6);
  font-size: 14px;
  color: color-mix(in srgb, var(--on-dark) 80%, transparent);
  letter-spacing: .01em;
}

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding-block: clamp(48px, 8vw, 96px); }
.section-head { margin-bottom: var(--s-7); }
.section-head.center { text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-serif); font-style: italic;
  color: var(--sage-deep);
  font-size: var(--step-1);
  margin-bottom: var(--s-2);
}
.section-head h2 { text-wrap: balance; margin-bottom: 0; }

/* ── Story ──────────────────────────────────────────────────────────── */
.story { padding-block: clamp(56px, 8vw, 96px); }
.story-lede {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-style: italic;
  text-align: center;
  color: var(--moss);
  text-wrap: balance;
  line-height: 1.4;
}
.botanical-rule {
  margin-top: var(--s-6);
  display: flex; justify-content: center; align-items: center;
  color: var(--sage);
  opacity: .55;
}
.botanical-rule::before, .botanical-rule::after {
  content: ""; height: 1px; flex: 0 0 60px;
  background: currentColor; margin-inline: var(--s-3);
}
.botanical-rule svg { width: 20px; height: 20px; }

/* ── Features ───────────────────────────────────────────────────────── */
.features { background: var(--cream-warm); border-block: 1px solid var(--cream-edge); }
.feature-grid {
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}
.feature-card {
  background: #fff;
  border: 1px solid var(--cream-edge);
  border-radius: var(--r-3);
  overflow: clip;
  transition: transform var(--t-2) var(--ease-soft), box-shadow var(--t-2);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-media {
  aspect-ratio: 16 / 10;
  overflow: clip;
  background: var(--cream-warm);
}
.feature-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-3) var(--ease-soft);
}
.feature-card:hover .feature-media img { transform: scale(1.03); }
.feature-body { padding: var(--s-5); }
.feature-body h3 { margin-bottom: var(--s-2); }
.feature-body p { color: var(--text-muted); margin: 0; }

/* ── How it works ───────────────────────────────────────────────────── */
.how .steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .how .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
}
.step { position: relative; padding-top: var(--s-7); }
.step-num {
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream-warm);
  color: var(--sage-deep);
  font-family: var(--font-serif); font-weight: 600;
  font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--cream-edge);
}
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--text-muted); margin: 0; }

/* ── Film ───────────────────────────────────────────────────────────── */
.film { background: var(--cream); }
.film-frame {
  margin-top: var(--s-5);
  border-radius: var(--r-4);
  overflow: clip;
  background: #000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.film-frame video { width: 100%; height: 100%; display: block; }
.film-caption {
  text-align: center;
  font-style: italic;
  font-family: var(--font-serif);
  margin-top: var(--s-5);
  font-size: var(--step-1);
}

/* ── Trust ──────────────────────────────────────────────────────────── */
.trust { background: var(--cream-warm); border-block: 1px solid var(--cream-edge); }
.trust-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.trust-grid li {
  text-align: left;
}
.trust-grid svg {
  width: 28px; height: 28px;
  color: var(--sage-deep);
  margin-bottom: var(--s-3);
}
.trust-grid h3 { font-size: var(--step-2); margin-bottom: var(--s-2); }
.trust-grid p { color: var(--text-muted); margin: 0; }

/* ── Final CTA ──────────────────────────────────────────────────────── */
.final-cta { padding-block: clamp(80px, 10vw, 140px); }
.cta-card {
  text-align: center;
  background: linear-gradient(160deg, var(--moss) 0%, var(--sage-deep) 70%);
  color: var(--on-dark);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 56px);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: clip;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(212,165,116,.18) 0%, transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(143,166,142,.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-card h2 { color: var(--on-dark); font-size: var(--step-4); }
.cta-card p { font-size: var(--step-2); color: color-mix(in srgb, var(--on-dark) 90%, transparent); margin-bottom: var(--s-6); }
.cta-card .btn-primary { background: var(--cream); color: var(--moss); }
.cta-card .btn-primary:hover { background: #fff; color: var(--moss); }
.cta-foot { margin-top: var(--s-5); font-size: 14px; color: color-mix(in srgb, var(--on-dark) 80%, transparent); }
.cta-foot a { color: var(--cream); text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.m-footer {
  padding-block: var(--s-7);
  border-top: 1px solid var(--cream-edge);
  color: var(--text-muted);
  background: var(--cream);
}
.m-footer .m-brand { color: var(--text-muted); font-size: 14px; }
.m-footer small { font-size: 13px; }
.m-foot-nav { display: flex; gap: var(--s-5); }
.m-foot-nav a { color: var(--text-muted); font-size: 14px; }

/* ── Reveal-on-scroll ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-3) var(--ease-soft), transform var(--t-3) var(--ease-soft);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  /* Keep the hero still by hiding the video; the background image takes over */
  .hero-video { display: none; }
}
