/* Bin Knight — marketing site
   Design tokens mirror theme/theme.js from the app (light palette + the
   thick/solid hard-shadow card style). Keep these in sync if the app's
   theme changes. */

:root {
  --bg: #FAF3E8;
  --surface: #FFFFFF;
  --surface-alt: #F1E7D6;
  --border: #E4D8C4;
  --primary: #226539;
  --primary-pressed: #1B5230;
  --on-primary: #FFFFFF;
  --secondary: #F69402;
  --text: #33281E;
  --text-muted: #7A6C5D;
  --danger: #DA292E;
  --warning: #FEC703;
  --success: #226539;
  --ink: #000000;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 20px;
  --sp-xxl: 24px;
  --sp-xxxl: 32px;

  --font-display: 'Germania One', Georgia, 'Times New Roman', serif;
  --font-body: 'Asap', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* thick, solid drop shadow — matches theme.js after Job 1 */
  --hard-shadow: 4px 4px 0px var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--text);
  margin: 0 0 var(--sp-md);
}

h1 { font-size: 44px; line-height: 1.1; }
h2 { font-size: 32px; line-height: 1.15; }
h3 { font-size: 20px; margin-bottom: var(--sp-sm); }

p { margin: 0 0 var(--sp-lg); }

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--sp-sm);
}

.center { text-align: center; }
.eyebrow.center, h2.center, p.center { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  box-shadow: var(--hard-shadow);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  cursor: pointer;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--ink);
}

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-pressed); }

.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-alt); }

.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; border-width: 2px; box-shadow: 3px 3px 0px var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-md);
  padding-bottom: var(--sp-md);
  gap: var(--sp-lg);
}

.brand-logo { height: 72px; width: auto; }

.nav {
  display: flex;
  gap: var(--sp-xxl);
  font-weight: 600;
}

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

/* ---------- card (matches components/ui/Card.js) ---------- */

.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--hard-shadow);
  padding: var(--sp-xl);
}

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 56px;
  overflow: hidden;
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  /* Legibility scrim: opaque cream over the text column on the left,
     fading out toward the mascot card on the right so the photo
     still reads through. */
  background-image:
    linear-gradient(90deg, rgba(250, 243, 232, 0.94) 0%, rgba(250, 243, 232, 0.78) 42%, rgba(250, 243, 232, 0.35) 75%, rgba(250, 243, 232, 0.15) 100%),
    url('assets/Home-Banner-Desktop.webp');
  background-size: cover;
  background-position: center;
}

.hero .hero-inner { width: 100%; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-xxxl);
  align-items: center;
}

.lede { font-size: 18px; color: var(--text-muted); max-width: 46ch; }

.hero-ctas { display: flex; gap: var(--sp-lg); flex-wrap: wrap; margin-bottom: var(--sp-md); }

.hero-note { font-size: 14px; color: var(--text-muted); margin: 0; }

.hero-art { position: relative; display: flex; justify-content: center; }

.hero-card {
  padding: var(--sp-xxxl);
  background: var(--surface-alt);
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: center;
}

.binman { width: 100%; max-width: 220px; }

.floating-bin {
  position: absolute;
  width: 64px;
  border-radius: var(--radius-sm);
}

.bin-a { top: -18px; left: -18px; transform: rotate(-8deg); }
.bin-b { bottom: -18px; right: -12px; transform: rotate(10deg); }

/* ---------- strip (animated scroller) ---------- */

.strip {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll 32s linear infinite;
}

.strip:hover .strip-track { animation-play-state: paused; }

.strip-inner {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--sp-xxl);
  padding: var(--sp-lg) var(--sp-xl);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  color: #FFFFFF;
}

.strip-inner .dot { opacity: 0.55; }

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section.alt { background: var(--surface-alt); }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
  margin-top: var(--sp-xxxl);
}

.step { position: relative; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--secondary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: var(--sp-md);
  box-shadow: 3px 3px 0px var(--ink);
}

.step p { color: var(--text-muted); margin-bottom: 0; font-size: 15px; }

/* ---------- feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
  margin-top: var(--sp-xxxl);
}

.feature-icon { width: 44px; height: 44px; margin-bottom: var(--sp-md); }
.feature-icon-logo { width: 36px; height: 36px; }

.feature p { color: var(--text-muted); margin-bottom: 0; font-size: 15px; }

/* ---------- impact ---------- */

.impact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxxl);
  align-items: center;
}

.impact-card { display: flex; flex-direction: column; gap: var(--sp-lg); background: var(--secondary); }

.impact-stat {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  font-weight: 700;
}

.impact-num { font-size: 24px; }

/* ---------- faq ---------- */

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
  margin-top: var(--sp-xxxl);
}

.faq-item p { color: var(--text-muted); margin-bottom: 0; font-size: 15px; }

/* ---------- cta ---------- */

.cta-section { padding: 56px 0 88px; }

.cta-inner { display: flex; justify-content: center; }

.cta-card {
  max-width: 640px;
  width: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-email-btn { margin-top: var(--sp-sm); }

.cta-fineprint {
  margin-top: var(--sp-lg);
  margin-bottom: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--bg);
  padding: var(--sp-xxl) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer-logo { height: 56px; width: auto; opacity: 0.85; }

.footer-inner p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(250, 243, 232, 0.35) 0%, rgba(250, 243, 232, 0.92) 55%),
      url('assets/Home-Banner-Mobile.webp');
    background-position: top center;
  }

  h1 { font-size: 34px; }
  h2 { font-size: 26px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: var(--sp-lg); }

  .nav { display: none; }

  .steps, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-inner { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .strip-inner { justify-content: flex-start; }
  h1 { font-size: 28px; }
}

/* ---------- sub-page header (About / FAQ / Terms / Privacy) ---------- */

.page-hero { padding: 56px 0 48px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .lede { margin-left: auto; margin-right: auto; }

.about-banner {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(250, 243, 232, 0.92) 0%, rgba(250, 243, 232, 0.55) 55%, rgba(250, 243, 232, 0.3) 100%),
    url('assets/about-banner.webp');
  background-size: cover;
  background-position: center;
}

.about-banner .page-hero { padding-bottom: 20px; }
.about-banner .section { padding-top: 24px; }

.faq-page-hero {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(250, 243, 232, 0.85) 0%, rgba(250, 243, 232, 0.85) 100%),
    url('assets/Faq-Banner.webp');
  background-size: cover;
  background-position: center;
}

.nav a.active { color: var(--primary); }

/* ---------- bios (About Us) ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
  margin-top: var(--sp-xxxl);
}

.bio-card { display: flex; flex-direction: column; gap: var(--sp-md); }

.bio-photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-pill);
  border: 2px dashed var(--border);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-muted);
}

.bio-photo-note {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: -6px 0 0;
}

.bio-photo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  overflow: hidden;
}

.bio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bio-role {
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: -4px 0 4px;
}

.bio-card p:last-child { margin-bottom: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- brand story ---------- */

.brand-story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xxxl); align-items: center; }

.brand-story-photo {
  border: 2px solid var(--ink);
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  min-height: 260px;
  overflow: hidden;
  box-shadow: var(--hard-shadow);
}

.brand-story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- faq page ---------- */

.faq-page-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-xl); margin-top: var(--sp-xxxl); }
.faq-page-list .faq-item p { margin-bottom: 0; }

.faq-cta { text-align: center; margin-top: var(--sp-xxxl); }

/* ---------- legal pages ---------- */

.legal-meta { color: var(--text-muted); font-size: 14px; margin: 0 0 4px; }
.legal-meta:first-of-type { margin-top: var(--sp-sm); }

.legal-section { margin-top: var(--sp-xl); }
.legal-section h2 { font-size: 22px; }
.legal-section p { color: var(--text-muted); font-size: 15px; }
.legal-section ul { color: var(--text-muted); font-size: 15px; padding-left: 1.2em; margin: 0 0 var(--sp-lg); }
.legal-section li { margin-bottom: 6px; }

.legal-wrap { max-width: 760px; }

/* ---------- responsive additions ---------- */

@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; }
  .brand-story { grid-template-columns: 1fr; }
  .faq-page-list { grid-template-columns: 1fr; }
}

/* ---------- footer nav ---------- */

.footer-nav { display: flex; gap: var(--sp-lg); flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--primary); }
.footer-inner p a { color: var(--primary); text-decoration: none; }
.footer-inner p a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- section divider photo ---------- */

.section-divider {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  line-height: 0;
}

.divider-photo { width: 100%; height: 320px; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .divider-photo { height: 200px; }
}

/* ---------- cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--surface);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -4px 0px var(--ink);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  padding: var(--sp-lg) var(--sp-xl);
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
}

.cookie-banner a { color: var(--primary); font-weight: 600; }

.cookie-banner-actions { display: flex; gap: var(--sp-md); flex-shrink: 0; }

.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}

.footer-cookie-btn:hover { color: var(--primary); }

@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}
