/* In Between Website UI Kit — local utilities (mimic Tailwind classes we use). */
@import url('./colors_and_type.css');

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(oklch(0.22 0.02 60 / 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

@media (max-width: 767px) {
  .shell {
    flex-direction: column;
  }
}

aside.sidebar {
  position: sticky; top: 0;
  width: 256px; flex-shrink: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  background: var(--bg-warm);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px 28px;
  z-index: 30;
}

main.content { flex: 1; min-width: 0; }

.eyebrow {
  font-size: 11px; font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-muted);
}

.display-italic {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  color: oklch(from var(--fg) l c h / 0.75);
}

.hairline { border-color: var(--hairline); }

.section-pad   { padding: 80px 32px; }
@media (min-width: 768px)  { .section-pad { padding: 112px 64px; } }
@media (min-width: 1024px) { .section-pad { padding: 144px 96px; } }

.section-pad-sm   { padding: 64px 32px; }
@media (min-width: 768px)  { .section-pad-sm { padding: 96px 64px; } }
@media (min-width: 1024px) { .section-pad-sm { padding: 96px 96px; } }

.page-pad   { padding-left: 32px; padding-right: 32px; }
@media (min-width: 768px)  { .page-pad { padding-left: 64px; padding-right: 64px; } }
@media (min-width: 1024px) { .page-pad { padding-left: 96px; padding-right: 96px; } }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
@media (max-width: 767px) { .grid-12 { grid-template-columns: 1fr; gap: 28px; } }

/* primary link/CTA */
.ulink {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg);
  border-bottom: 1px solid oklch(0.22 0.02 60 / 0.3);
  padding-bottom: 4px;
  width: fit-content;
  transition: color 320ms cubic-bezier(0.16,1,0.3,1), border-color 320ms cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  white-space: nowrap;
}
.ulink:hover { color: var(--accent); border-color: var(--accent); }
.ulink .arrow { transition: transform 320ms cubic-bezier(0.16,1,0.3,1); }
.ulink:hover .arrow { transform: translateX(4px); }

/* filled-rect (sidebar apply) */
.btn-fill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--fg); color: var(--bg);
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: 0; width: 100%;
  white-space: nowrap;
  transition: background 320ms cubic-bezier(0.16,1,0.3,1);
}
.btn-fill:hover { background: var(--accent); }

/* italic accent inside display headline */
.accent { color: var(--accent); font-style: italic; font-weight: 400; }
em.accent { font-style: italic; }

/* live dot — already in tokens, but applied via class */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--moss);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track { display: flex; white-space: nowrap; animation: marquee 70s linear infinite; }

/* utility */
.text-muted { color: var(--fg-muted); }
.text-accent { color: var(--accent); }
.italic { font-style: italic; }
.serif { font-family: var(--font-display); }
.sans  { font-family: var(--font-sans); }

/* what we've already built — two-column list */
.built-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
@media (max-width: 767px) { .built-list { grid-template-columns: 1fr; } }

/* responsive helpers */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .only-mobile { display: none !important; }
}

/* WhatYouGet benefit items - desktop two-column layout */
@media (min-width: 768px) {
  .benefit-item {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 48px;
    align-items: baseline;
  }

  .benefit-item p:first-child {
    margin-bottom: 0 !important;
  }
}

/* ========== Mobile Responsive Styles ========== */

/* Default: Hide mobile elements on desktop */
.mobile-header,
.mobile-menu {
  display: none;
}

/* Mobile: Show mobile elements, hide desktop sidebar */
@media (max-width: 767px) {
  /* Hide desktop sidebar completely */
  aside.sidebar {
    display: none !important;
  }

  /* Make content full width */
  main.content {
    width: 100%;
    margin-left: 0;
  }

  /* Show and style mobile header */
  .mobile-header {
    display: flex !important;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-logo {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--fg);
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 60;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fg);
    transition: all 320ms var(--ease-out);
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Show mobile menu container */
  .mobile-menu {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-warm);
    z-index: 40;
    flex-direction: column;
    padding: 80px 32px 32px;
    transform: translateX(-100%);
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-menu nav a {
    padding: 16px 20px;
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.1;
    color: var(--fg);
    border-left: 2px solid transparent;
    transition: all 320ms;
  }

  .mobile-menu nav a.active {
    border-left-color: var(--accent);
    color: var(--accent);
  }

  /* Responsive grids - stack on mobile */
  .grid-12 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Section with sidebar pattern - stack on mobile */
  section[style*="grid-template-columns: repeat(12"] > div {
    grid-column: span 12 !important;
  }

  /* Adjust section padding on mobile */
  .section-pad {
    padding: 48px 24px !important;
  }

  .section-pad-sm {
    padding: 40px 24px !important;
  }

  .page-pad {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Hero titles - smaller on mobile */
  .display-xl,
  h1 {
    font-size: clamp(36px, 10vw, 64px) !important;
  }

  /* Display italic lead - smaller on mobile */
  .display-italic {
    font-size: clamp(18px, 4vw, 24px) !important;
  }

  /* Team page - stack founder photos on mobile */
  .founder-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  /* Community page - make photo collage 2 columns on mobile */
  .photo-band {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* WhatYouGet section - stack everything on mobile, no grid */
  .what-you-get-section {
    display: block !important;
  }

  .what-you-get-section > div,
  .what-you-get-section > ul {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .what-you-get-section > div {
    margin-bottom: 32px;
  }

  /* Mobile: benefit items stack naturally (no grid needed) */

  /* Events section - stack on mobile */
  .events-section {
    display: block !important;
  }

  .events-header,
  .built-list {
    grid-column: auto !important;
    width: 100% !important;
  }

  .events-header {
    margin-bottom: 32px;
  }
}
