/* ─── Base ────────────────────────────────────────────────────────── */
html, body {
  margin: 0;
  padding: 0;
  background: #050506;
  overflow-anchor: none;
}
*, *::before, *::after { box-sizing: border-box; }
::selection { background: rgba(247, 145, 47, 0.4); }

body {
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sg-root {
  position: relative;
  background: #050506;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ─── Grain + grid overlays ───────────────────────────────────────── */
.sg-grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent 179px,
    rgba(255, 255, 255, 0.03) 179px,
    rgba(255, 255, 255, 0.03) 180px
  );
}

/* ─── Nav ─────────────────────────────────────────────────────────── */
.sg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 44px;
  mix-blend-mode: difference;
}

.sg-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

.sg-logo .dot { color: #F7912F; }

main { display: block; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', sans-serif; }

.sg-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.sg-nav-links a {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

/* ─── Running section header ─────────────────────────────────────── */
.sg-running-header {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 200;
  text-align: center;
  mix-blend-mode: difference;
  pointer-events: none;
}

.sg-running-header span {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: #fff;
}

/* ─── Fork cards hover ───────────────────────────────────────────── */
.sg-fork-card { will-change: transform; }
.sg-fork-card:hover { transform: translateY(-4px); }

/* ─── Views ──────────────────────────────────────────────────────── */
.sg-view[hidden] { display: none; }

/* ─── Floating card animations (desktop defaults) ────────────────── */
@keyframes sgFloatA {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%      { transform: translateY(-14px) rotate(-8deg); }
}

@keyframes sgFloatB {
  0%, 100% { transform: translateY(0) rotate(7deg); }
  50%      { transform: translateY(-14px) rotate(7deg); }
}

.sg-float-a { transform: rotate(-8deg); }
.sg-float-b { transform: rotate(7deg); }

/* ─── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sg-float-a, .sg-float-b { animation: none !important; }
  .sg-fork-card { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   TABLET + MOBILE   ≤ 900px
   Restructures act sections so floating cards stop overlapping copy.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ─ Nav ────────────────────────────────────────────────────────── */
  .sg-nav { padding: 14px 18px; }
  .sg-logo { font-size: 19px; }
  .sg-nav-links { gap: 12px; }
  .sg-nav-links a { font-size: 10px; letter-spacing: 1.5px; }

  /* ─ Running section header ────────────────────────────────────── */
  .sg-running-header { top: 52px; }
  .sg-running-header span { font-size: 10px; letter-spacing: 2px; }

  /* ─ Act sections — stack vertically, card below copy ──────────── */
  .sg-act {
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    min-height: auto !important;
    padding: 90px 22px 80px !important;
    gap: 20px;
  }
  .sg-act-first { padding-top: 110px !important; }
  .sg-act-right { justify-content: flex-start !important; }

  /* ─ Copy container — full width, always left-aligned ──────────── */
  .sg-copy {
    max-width: 100% !important;
    text-align: left !important;
    position: relative;
    z-index: 3;
  }
  .sg-copy-title { font-size: clamp(36px, 10vw, 56px) !important; }
  .sg-copy-body,
  .sg-copy-body-right {
    max-width: 100% !important;
    margin: 20px 0 0 0 !important;
    font-size: 16px !important;
  }

  /* ─ Floating cards — become inline, smaller, less rotation ────── */
  .sg-float-a,
  .sg-float-b {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: min(320px, 100%) !important;
    height: auto !important;
    min-height: 300px;
    margin: 12px auto 40px !important;
    padding: 28px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
  }
  .sg-float-a { transform: rotate(-3deg); }
  .sg-float-b { transform: rotate(3deg); }

  /* Override the keyframe rotate so animation matches the reduced tilt */
  @keyframes sgFloatA {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-8px) rotate(-3deg); }
  }
  @keyframes sgFloatB {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50%      { transform: translateY(-8px) rotate(3deg); }
  }

  /* ─ Stroke-word backgrounds — shrink so they don't dominate ───── */
  .sg-stroke-word {
    font-size: clamp(72px, 22vw, 130px) !important;
    letter-spacing: -6px !important;
    top: 60px !important;
    left: 12px !important;
    right: auto !important;
    z-index: 1 !important;
  }
  .sg-stroke-word-right {
    left: auto !important;
    right: 12px !important;
  }
  .sg-stroke-word-big {
    font-size: clamp(120px, 40vw, 200px) !important;
    letter-spacing: -10px !important;
  }

  /* ─ Scroll hints — keep, but ensure room ──────────────────────── */
  .sg-scroll-hint {
    position: static !important;
    transform: none !important;
    text-align: center;
    margin-top: 8px;
  }

  /* ─── FORK VIEW ───────────────────────────────────────────────── */
  .sg-fork {
    padding: 100px 22px 40px !important;
    min-height: auto !important;
    justify-content: flex-start !important;
  }
  .sg-fork-title {
    font-size: clamp(60px, 20vw, 96px) !important;
    letter-spacing: -5px !important;
  }
  .sg-fork-tagline {
    font-size: 16px !important;
    max-width: 100% !important;
    padding: 0 8px;
  }
  .sg-fork-cards {
    gap: 14px !important;
    margin-top: 36px !important;
    width: 100%;
  }
  .sg-fork-card {
    width: min(320px, 100%) !important;
    padding: 26px !important;
  }
  .sg-fork-picka {
    margin-top: 28px !important;
    text-align: center;
    padding: 0 12px;
  }

  /* Fork bottom "GET THE APP" bar — become inline instead of fixed
     to prevent overlap with the picka/cards on tall content. */
  .sg-fork-get-app {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 40px;
    padding: 0 12px;
  }

  /* ─── CTA SECTIONS ───────────────────────────────────────────── */
  .sg-cta {
    min-height: auto !important;
    padding: 90px 22px 90px !important;
  }
  .sg-cta-title {
    font-size: clamp(40px, 11vw, 64px) !important;
    letter-spacing: -2.5px !important;
  }
  .sg-cta-glow {
    width: 480px !important;
    height: 480px !important;
  }
  .sg-cta-buttons { margin-top: 32px !important; }
  .sg-cta-crosslink {
    margin-top: 40px !important;
    text-align: center;
    padding: 0 12px;
    line-height: 1.6;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SMALL PHONES   ≤ 480px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .sg-nav { padding: 12px 14px; }
  .sg-logo { font-size: 17px; }
  .sg-nav-links { gap: 10px; }
  .sg-nav-links a { font-size: 9px; letter-spacing: 1px; }

  .sg-act { padding: 88px 16px 60px !important; }
  .sg-act-first { padding-top: 100px !important; }
  .sg-copy-title { font-size: clamp(32px, 10vw, 44px) !important; }
  .sg-copy-body,
  .sg-copy-body-right { font-size: 15px !important; }

  .sg-float-a,
  .sg-float-b {
    width: 100% !important;
    min-height: 280px;
    padding: 24px !important;
    margin: 8px auto 24px !important;
  }
  .sg-float-a > div:first-child,
  .sg-float-b > div:first-child { font-size: 40px !important; }

  .sg-fork { padding: 90px 16px 32px !important; }
  .sg-fork-title {
    font-size: clamp(52px, 18vw, 72px) !important;
    letter-spacing: -4px !important;
  }
  .sg-fork-card { width: 100% !important; }

  .sg-cta { padding: 80px 16px 80px !important; }
  .sg-cta-title { font-size: clamp(36px, 12vw, 52px) !important; }
  .sg-cta-glow { width: 380px !important; height: 380px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   WAITLIST FORM
   ═══════════════════════════════════════════════════════════════════ */
.sg-waitlist {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 44px auto 0;
  padding: 0 12px;
  text-align: left;
}

.sg-waitlist-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 6px;
  transition: border-color 0.18s, background 0.18s;
}

.sg-waitlist-row:focus-within {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
}

.sg-waitlist-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 16px;
  letter-spacing: -0.2px;
}

.sg-waitlist-input::placeholder { color: #7A7F97; }
.sg-waitlist-input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #14141a inset;
}

.sg-waitlist-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  color: #000;
  transition: transform 0.15s, filter 0.15s;
  white-space: nowrap;
}

.sg-waitlist-btn:hover:not([disabled]) { transform: translateY(-1px); filter: brightness(1.06); }
.sg-waitlist-btn:active:not([disabled]) { transform: translateY(0); }
.sg-waitlist-btn[disabled] { opacity: 0.6; cursor: default; }

.sg-waitlist-btn-work { background: #F7912F; }
.sg-waitlist-btn-biz  { background: #F0509B; }

.sg-waitlist-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sg-waitlist-note {
  margin: 14px 4px 0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #7A7F97;
  text-align: center;
  line-height: 1.6;
}

.sg-inline-link {
  color: #9B9BB7;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(155, 155, 183, 0.4);
}
.sg-inline-link:hover { color: #fff; text-decoration-color: currentColor; }

.sg-waitlist-msg {
  margin: 16px 4px 0;
  min-height: 20px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-align: center;
}
.sg-waitlist-msg[data-state="ok"]   { color: #7CE0BE; }
.sg-waitlist-msg[data-state="err"]  { color: #F0509B; }

/* Success state — hide the form row + note, keep the message */
.sg-waitlist[data-state="ok"] .sg-waitlist-row,
.sg-waitlist[data-state="ok"] .sg-waitlist-note { display: none; }
.sg-waitlist[data-state="ok"] .sg-waitlist-msg {
  font-size: 14px;
  color: #fff;
  padding: 18px 20px;
  border: 1.5px solid rgba(124, 224, 190, 0.35);
  background: rgba(124, 224, 190, 0.08);
  border-radius: 14px;
  letter-spacing: -0.1px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════
   "COMING SOON" APP STORE BADGES (non-clickable)
   ═══════════════════════════════════════════════════════════════════ */
.sg-store-soon {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #7A7F97;
  text-transform: uppercase;
  user-select: none;
  cursor: default;
  background: transparent;
}

.sg-store-soon-row {
  position: relative;
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.sg-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 44px 44px 32px;
  background: #050506;
  z-index: 2;
}

.sg-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.sg-footer-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
}
.sg-footer-brand .dot { color: #F7912F; }

.sg-footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.sg-footer-link {
  color: #9B9BB7;
  text-decoration: none;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s;
}
.sg-footer-link:hover { color: #fff; }

.sg-footer-copy {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #7A7F97;
  text-transform: uppercase;
}

.sg-footer-fineprint {
  max-width: 1400px;
  margin: 24px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: #7A7F97;
  text-align: center;
}
.sg-footer-seo {
  color: #9B9BB7;
  display: inline-block;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   LEGAL PAGES (privacy.html / terms.html)
   ═══════════════════════════════════════════════════════════════════ */
.sg-legal {
  position: relative;
  padding: 130px 44px 80px;
  min-height: 60vh;
}

.sg-legal-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  z-index: 2;
}

.sg-legal-eyebrow {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 4px;
  color: #F7912F;
  margin-bottom: 16px;
}

.sg-legal-title {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.94;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.sg-legal-updated {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #7A7F97;
  text-transform: uppercase;
  margin: 0 0 44px;
}

.sg-legal-section {
  margin: 0 0 32px;
  color: #C7C7DA;
  line-height: 1.7;
  font-size: 16px;
}

.sg-legal-section h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 14px;
}

.sg-legal-section p { margin: 0 0 14px; }
.sg-legal-section p:last-child { margin-bottom: 0; }

.sg-legal-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.sg-legal-section li { margin-bottom: 8px; }

.sg-legal-section strong { color: #fff; font-weight: 700; }
.sg-legal-section em { font-style: normal; color: #F7912F; }

.sg-legal-callout {
  padding: 22px 24px;
  border: 1px dashed rgba(247, 145, 47, 0.4);
  border-radius: 14px;
  background: rgba(247, 145, 47, 0.05);
  color: #C7C7DA;
}
.sg-legal-callout p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE ADJUSTMENTS FOR NEW ELEMENTS   ≤ 900px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sg-waitlist { margin-top: 32px; max-width: 100%; padding: 0 4px; }
  .sg-waitlist-row {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }
  .sg-waitlist-input { padding: 14px 14px; font-size: 16px; }
  .sg-waitlist-btn { padding: 15px 20px; font-size: 14px; width: 100%; }

  .sg-store-soon-row { margin-top: 22px; gap: 10px; }
  .sg-store-soon { padding: 10px 14px; font-size: 10px; letter-spacing: 1.5px; }

  .sg-footer { padding: 36px 22px 28px; }
  .sg-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .sg-footer-links {
    gap: 16px;
    justify-content: center;
  }
  .sg-footer-fineprint {
    margin-top: 20px;
    padding: 0 8px;
    font-size: 11px;
  }

  .sg-legal { padding: 100px 22px 60px; }
  .sg-legal-title { font-size: clamp(40px, 10vw, 60px); letter-spacing: -2px; }
  .sg-legal-section { font-size: 15px; }
  .sg-legal-section h2 { font-size: 18px; }
}

@media (max-width: 480px) {
  .sg-waitlist-note { font-size: 10px; letter-spacing: 1px; }
  .sg-footer-links { gap: 12px; }
  .sg-footer-link { font-size: 10px; letter-spacing: 1.5px; }
  .sg-legal { padding: 96px 16px 52px; }
}
