/* ===== Design Tokens ===== */
:root{
  --bg: #ffffff;
  --bgMuted: #f7f7f7;
  --text: #111111;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --accent: #0071e3;
  --accentHover: #005bb5;
  --radiusLg: 24px;
  --radiusMd: 16px;
  --shadowSoft: 0 12px 40px rgba(0,0,0,0.10);
  --max: 1120px;
  --fontRounded: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Typography ===== */
.h1{
  font-family: var(--fontRounded);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}
.lead{
  margin: 18px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: -0.01em;
  max-width: 46ch;
}
.sectionTitle{
  font-family: var(--fontRounded);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 14px;
}
.sectionCopy{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 70ch;
}
.eyebrow{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:active{ transform: scale(0.97); }
.btnPrimary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,113,227,0.25);
}
.btnPrimary:hover{
  background: var(--accentHover);
}
.btnGhost{
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btnGhost:hover{
  background: var(--bgMuted);
}

/* ===== Navbar ===== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: transparent;
  transition: padding 0.35s ease;
}
.navbar.scrolled{
  padding: 10px 16px 0;
}
.navInner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 20px;
  border-radius: 100px;
  background: transparent;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  backdrop-filter: saturate(100%) blur(0px);
  -webkit-backdrop-filter: saturate(100%) blur(0px);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}
.navbar.scrolled .navInner{
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadowSoft);
  padding: 0 24px;
}
.navLeft{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}
.navRight{
  justify-self: end;
}
.mark{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.mark img{
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}
.markName{
  font-family: var(--fontRounded);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.navCenter{
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
}
.navLink{
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: -0.01em;
}
.navLink:hover{
  background: var(--bgMuted);
  color: var(--text);
}

/* ===== Hamburger (mobile only) ===== */
.hamburger{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
  transition: background 0.15s;
}
.hamburger:hover{ background: var(--bgMuted); }
.hamburger svg{
  display: block;
  width: 22px;
  height: 22px;
}

/* ===== Mobile menu drawer ===== */
.mobileMenu{
  display: none;
  position: fixed;
  top: 62px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 16px 28px;
  flex-direction: column;
  gap: 4px;
}
.mobileMenu.open{ display: flex; }
.mobileMenu a{
  display: block;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  border-radius: 12px;
  transition: background 0.15s;
}
.mobileMenu a:hover{ background: var(--bgMuted); }
.mobileMenu .mobileBuy{
  margin-top: 8px;
  text-align: center;
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
}
.mobileMenu .mobileBuy:hover{ background: var(--accentHover); }

/* ===== Footer ===== */
footer{
  padding: 26px 0 40px;
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.footerRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footerLinks{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footerLinks a{ color: var(--muted); }
.footerLinks a:hover{ color: var(--text); }

/* ===== Responsive — navbar mobile ===== */
@media (max-width: 700px){
  .navbar.scrolled{
    padding: 8px 10px 0;
  }
  .navInner{
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }
  .navCenter{ display: none; }
  .hamburger{ display: block; }
}

/* ===== Legal / Prose pages ===== */
.legalHero{
  padding: 100px 0 40px;
  text-align: center;
}
.legalTitle{
  font-family: var(--fontRounded);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.legalMeta{
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.legalBody{
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 0 100px;
}
.legalBody h2{
  font-family: var(--fontRounded);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
  line-height: 1.3;
}
.legalBody h3{
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.legalBody p{
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
}
.legalBody ul{
  margin: 0 0 16px 20px;
  padding: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.legalBody li{
  margin-bottom: 6px;
}
.legalBody li ul{
  margin-top: 6px;
  margin-bottom: 0;
}
.legalBody a{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legalBody a:hover{
  color: var(--accentHover);
}

/* ===== Scroll reveal (slide up on enter viewport) ===== */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.reveal-in{
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-delay-1{ transition-delay: 0.12s; }
.reveal.reveal-delay-2{ transition-delay: 0.24s; }
.reveal.reveal-delay-3{ transition-delay: 0.36s; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  * { scroll-behavior: auto !important; transition: none !important; }
  .reveal{
    opacity: 1;
    transform: none;
  }
}
