/* ═══════════════════════════════════════════════════════════
   NEEM — BRAND & MARKETING SYSTEM
   Carries the v2 design tokens forward and adds marketing-
   surface-specific components: social cards, merch mockups,
   stationery, signage.
   ═══════════════════════════════════════════════════════════ */

/* ─── BRAND FONTS · self-hosted General Sans + DM Mono ─── */
@import url('fonts.css');

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

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

:root {
  /* ─── GREEN — SIGNAL ONLY ─── */
  --green-brand:   #50C800;  /* Bright lime — logo primary */
  --green:         #40A800;  /* Deep grass — buttons, accents on light */
  --green-dark:    #2E7A00;  /* Hover states */
  --green-dim:     #143C00;  /* Deep accent surfaces */

  /* ─── NEUTRALS ─── */
  --ink:          #111111;
  --ink-90:       #1A1A1A;
  --ink-80:       #2A2A2A;
  --ink-60:       #444444;
  --ash:          #6B6B6B;
  --ash-light:    #9A9A9A;
  --ash-dark-bg:  #B0B0B0;
  --stone:        #F5F4F1;
  --stone-2:      #ECEAE5;
  --stone-3:      #E0DDD7;
  --white:        #FFFFFF;
  --forest:       #0A2009;
  --forest-2:     #11331A;

  /* ─── TYPOGRAPHY ─── */
  --display: 'General Sans', system-ui, sans-serif;  /* @kind font */
  --sans:    'General Sans', system-ui, sans-serif;  /* @kind font */
  --mono:    'DM Mono', 'Courier New', monospace;    /* @kind font */

  /* ─── SPACING ─── */
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px;
  --s20: 20px; --s24: 24px; --s32: 32px; --s40: 40px;
  --s48: 48px; --s64: 64px; --s80: 80px;

  /* ─── RADIUS ─── */
  --r4: 4px; --r6: 6px; --r8: 8px; --r12: 12px; --r16: 16px;

  --ease: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);  /* @kind other */
}

html { scroll-behavior: smooth; color-scheme: light; background: var(--stone); }

body {
  font-family: var(--sans);
  background: var(--stone);
  color: var(--ink);
  color-scheme: light;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid var(--ink-80);
}
.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--ink-80);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.logo-lockup { display: flex; align-items: center; gap: 10px; }
.logo-wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.sidebar-version {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ash-dark-bg);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.sidebar-nav { padding: 12px 0 32px; flex: 1; }
.nav-section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ash);
  padding: 16px 24px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ash-dark-bg);
  cursor: pointer;
  transition: var(--ease);
  border-left: 2px solid transparent;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.nav-item:hover { color: var(--white); background: var(--ink-80); }
.nav-item.active { color: var(--white); border-left-color: var(--green); background: rgba(40, 167, 69, 0.08); }
.nav-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ash);
  flex-shrink: 0;
}
.nav-item.active .nav-dot { background: var(--green); }

/* ─── MAIN ─── */
.main { margin-left: 240px; min-height: 100vh; }
.ds-section {
  display: none;
  padding: 56px 56px 96px;
  max-width: 1140px;
}
.ds-section.active { display: block; animation: fadeUp 0.22s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── EYEBROW (green dot pattern) ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.eyebrow-light { color: var(--ink); }
.eyebrow-dark { color: var(--white); }
.eyebrow-dark::before { background: var(--green-brand); }

.section-title {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 15px;
  color: var(--ash);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* ─── GRID ─── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.g6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.g-span2 { grid-column: span 2; }
.g-span3 { grid-column: span 3; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--stone-2);
  border-radius: var(--r8);
  padding: 28px;
}
.card-dark {
  background: var(--ink-90);
  border: 1px solid var(--ink-80);
  border-radius: var(--r8);
  padding: 28px;
}
.card-stone {
  background: var(--stone);
  border: 1px solid var(--stone-2);
  border-radius: var(--r8);
  padding: 28px;
}
.card-forest {
  background: var(--forest);
  border: 1px solid var(--forest-2);
  border-radius: var(--r8);
  padding: 28px;
}
.card-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ash);
  margin-bottom: 20px;
  display: block;
}
.card-label-dark {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ash-dark-bg);
  margin-bottom: 20px;
  display: block;
}

/* ─── DIVIDER ─── */
.rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 44px 0 24px;
}
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: var(--stone-2); }
.rule span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ash);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ─── RULES TABLE ─── */
.rules-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--stone-2);
  font-size: 13px;
}
.rules-row:last-child { border-bottom: none; }
.rules-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 5px; }
.rules-dot-red { background: #E03535; }
.rules-label { font-weight: 500; color: var(--ink); min-width: 160px; flex-shrink: 0; letter-spacing: -0.005em; }
.rules-val { color: var(--ash); line-height: 1.5; }
.rules-row-dark .rules-label { color: var(--white); }
.rules-row-dark .rules-val { color: var(--ash-dark-bg); }
.rules-row-dark { border-bottom-color: var(--ink-80); }

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge-green-fill { background: var(--green); color: var(--white); }
.badge-ink        { background: var(--ink); color: var(--white); }
.badge-white      { background: var(--white); color: var(--ink); }
.badge-stone      { background: var(--stone-2); color: var(--ink); }
.badge-outline-light { background: transparent; border: 1px solid var(--stone-3); color: var(--ink); }
.badge-outline-dark  { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: var(--white); }
.badge-with-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.badge-outline-dark.badge-with-dot::before { background: var(--green-brand); }

/* ─── BUTTONS (carried over) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-radius: var(--r6);
  letter-spacing: -0.005em;
  transition: var(--ease);
  white-space: nowrap;
  padding: 10px 20px;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--stone-2); }

/* ─── LOGO BOX ─── */
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r8);
  padding: 36px 28px;
  min-height: 120px;
}
.logo-caption {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ash);
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ─── BUSINESS CARD ─── */
.biz-card {
  border-radius: var(--r12);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1.75;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* ═════════════════════════════════════════════
   MARKETING SURFACES — NEW COMPONENTS
   ═════════════════════════════════════════════ */

/* ─── SOCIAL POST (square) ─── */
.social-square {
  aspect-ratio: 1;
  border-radius: var(--r12);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.social-square .corner-mark { position: absolute; top: 24px; right: 24px; }
.social-square .corner-folio { position: absolute; bottom: 24px; right: 24px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }
.social-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

/* ─── LINKEDIN STORY (9:16) ─── */
.story-card {
  aspect-ratio: 9 / 16;
  border-radius: var(--r12);
  overflow: hidden;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

/* ─── CAROUSEL (1080×1350 portrait) ─── */
.carousel-card {
  aspect-ratio: 4 / 5;
  border-radius: var(--r12);
  overflow: hidden;
  position: relative;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

/* ─── LETTERHEAD (A4 proxy) ─── */
.letterhead {
  aspect-ratio: 1 / 1.414;
  background: var(--white);
  border: 1px solid var(--stone-2);
  border-radius: var(--r4);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink);
}

/* ─── TOGGLE SWITCH (template controls) ─── */
.lh-switch {
  width: 40px; height: 22px;
  border-radius: 100px;
  border: none;
  background: var(--stone-3);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--ease);
  padding: 0;
}
.lh-switch.is-on { background: var(--green); }
.lh-switch-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.22);
  transition: var(--ease);
}
.lh-switch.is-on .lh-switch-knob { transform: translateX(18px); }

/* Letterhead body guideline (template scaffold, not content) */
.lh-guide-line {
  height: 7px;
  border-radius: 2px;
  background: var(--stone-2);
}

/* ─── BANNER STAND (vertical) ─── */
.banner-stand {
  aspect-ratio: 1 / 2.5;
  border-radius: var(--r4);
  overflow: hidden;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

/* ─── BRAND PATTERN ─── */
.pattern-tile {
  border-radius: var(--r8);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}

/* ─── MERCH ─── */
.merch-card {
  background: var(--white);
  border: 1px solid var(--stone-2);
  border-radius: var(--r8);
  padding: 0;
  overflow: hidden;
}
.merch-stage {
  aspect-ratio: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.merch-caption {
  padding: 14px 18px;
  border-top: 1px solid var(--stone-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.merch-name { font-size: 13px; font-weight: 500; letter-spacing: -0.005em; }
.merch-meta { font-family: var(--mono); font-size: 10px; color: var(--ash); letter-spacing: 0.02em; }

/* T-shirt silhouette */
.tee {
  width: 70%;
  aspect-ratio: 1 / 1.05;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}
.tee-body {
  width: 100%;
  height: 100%;
  clip-path: polygon(
    20% 6%, 30% 0%, 70% 0%, 80% 6%,
    100% 18%, 92% 32%, 84% 28%,
    84% 100%, 16% 100%, 16% 28%,
    8% 32%, 0 18%
  );
}

/* Tote bag */
.tote {
  width: 65%;
  aspect-ratio: 1 / 1.15;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.1));
}
.tote-body {
  position: absolute;
  inset: 22% 0 0 0;
  border-radius: 4px 4px 6px 6px;
}
.tote-handle-l, .tote-handle-r {
  position: absolute;
  top: 0;
  width: 18%;
  height: 32%;
  border: 5px solid;
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
}
.tote-handle-l { left: 18%; }
.tote-handle-r { right: 18%; }

/* Mug */
.mug {
  width: 60%;
  aspect-ratio: 1.3 / 1;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}
.mug-body {
  position: absolute;
  inset: 0 22% 0 4%;
  border-radius: 4px 4px 14px 14px;
}
.mug-handle {
  position: absolute;
  right: 0;
  top: 18%;
  width: 24%;
  height: 60%;
  border: 8px solid;
  border-left: none;
  border-radius: 0 50% 50% 0;
}

/* Water bottle */
.bottle {
  width: 28%;
  aspect-ratio: 1 / 3;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}
.bottle-cap {
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 9%;
  border-radius: 4px 4px 2px 2px;
}
.bottle-neck {
  position: absolute;
  top: 9%;
  left: 22%;
  right: 22%;
  height: 5%;
}
.bottle-body {
  position: absolute;
  inset: 14% 0 0 0;
  border-radius: 14px 14px 18px 18px;
}

/* Cap */
.cap-shape {
  width: 70%;
  aspect-ratio: 1.6 / 1;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}
.cap-crown {
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 70%;
  border-radius: 50% 50% 8% 8% / 80% 80% 8% 8%;
}
.cap-brim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* Notebook */
.notebook {
  width: 55%;
  aspect-ratio: 0.75 / 1;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.14));
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
}
.notebook-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10%;
}

/* Sticker */
.sticker-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px 10px 14px;
  gap: 10px;
  border-radius: 100px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}
.sticker-die {
  border-radius: var(--r12);
  padding: 18px 22px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.16));
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
}

/* Lanyard / name badge */
.badge-card {
  aspect-ratio: 0.65;
  border-radius: var(--r8);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
}
.badge-hole {
  width: 28px;
  height: 6px;
  background: var(--ink-80);
  border-radius: 100px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Slide */
.slide {
  border-radius: var(--r12);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
}
.slide-logo-mark { position: absolute; top: 20px; left: 24px; }
.slide-folio { position: absolute; top: 22px; right: 26px; font-family: var(--mono); font-size: 10px; opacity: 0.5; letter-spacing: 0.08em; }

/* Pattern svg helper */
.pattern-bg {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  pointer-events: none;
}

/* Icon tile */
.icon-tile {
  background: var(--white);
  border: 1px solid var(--stone-2);
  border-radius: var(--r8);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}
.icon-tile-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ash);
}

/* Imagery placeholder */
.img-slot {
  background: var(--stone);
  border: 1px solid var(--stone-2);
  border-radius: var(--r8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--ash);
  position: relative;
  overflow: hidden;
}
.img-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 14px,
    rgba(0,0,0,0.025) 14px 15px
  );
}
.img-slot-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  z-index: 1;
}

/* Big quote */
.big-quote {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.022em;
}
.big-quote::before {
  content: '"';
  display: block;
  font-size: 56px;
  line-height: 0.6;
  color: var(--green);
  margin-bottom: 12px;
}

/* Loader */
.loader {
  padding: 80px 56px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.02em;
}

/* Field input */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 11px; font-weight: 500; color: var(--ink); letter-spacing: 0.005em; }
.field-input {
  padding: 10px 14px;
  border: 1.5px solid var(--stone-2);
  border-radius: var(--r6);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.field-input:focus { border-color: var(--green); }
