/* ===================================================================
   OSF — One Step Forward Ventures
   Shared stylesheet. Neo-brutalist system: cream ground, ink borders,
   hard offset shadows, chunky pills. Edit tokens in :root to retheme.
   =================================================================== */

:root {
  --cream:      #fffaf0;
  --ink:        #141414;
  --blue:       #2b4cf0;
  --pink:       #ff4d8d;
  --green:      #39c07a;
  --yellow:     #ffd43d;
  --pink-tint:  #ffe0ec;
  --blue-tint:  #dfe6ff;
  --yellow-tint:#fff6d6;
  --muted:      #454545;
  --shadow:     8px 8px 0 var(--ink);
  --shadow-sm:  6px 6px 0 var(--ink);
  --shadow-xs:  4px 4px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: 'JetBrains Mono', monospace; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 42px; width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 42px;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 22px; letter-spacing: -.02em;
}
.logo-mark {
  width: 26px; height: 26px; background: var(--blue);
  border: 2px solid var(--ink); border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
}
.nav-links { display: flex; gap: 10px; align-items: center; }
.navlink {
  border: 2px solid var(--ink); border-radius: 100px;
  padding: 9px 18px; font-weight: 600; font-size: 13px;
  background: var(--cream); cursor: pointer;
}
.navlink--yellow { background: var(--yellow); }

/* ---------- Buttons / pills ---------- */
.btn { display: inline-block; font-weight: 700; border-radius: 100px; cursor: pointer; border: 2px solid transparent; text-align: center; }
.btn--solid   { background: var(--ink); color: #fff; font-size: 14px; padding: 13px 22px; }
.btn--outline { background: var(--cream); color: var(--ink); border-color: var(--ink); font-size: 14px; padding: 13px 22px; }
.btn--open    { background: var(--ink); color: #fff; font-size: 13px; padding: 10px 18px; align-self: flex-start; }
.btn--green   { background: var(--green); color: #fff; border-color: var(--ink); font-size: 13px; padding: 10px 18px; }
.btn--send    { background: var(--green); color: #fff; border-color: var(--ink); font-size: 15px; padding: 14px; width: 100%; box-shadow: var(--shadow-xs); }
.btn--soon    { background: var(--cream); color: #8a8272; border: 2px dashed #c4bca8; cursor: default; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; gap: 3px; padding: 9px 22px; text-align: center; }
.btn--soon .store { font-weight: 700; font-size: 14px; color: #6f6858; }
.btn--soon .soon-note { background: none; border: 0; padding: 0; margin: 0; font-weight: 600; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; opacity: .8; }

.backlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 13px; background: var(--cream);
  border: 2px solid var(--ink); border-radius: 100px; padding: 8px 15px;
}

/* ---------- Badges & stickers ---------- */
.badge {
  font-weight: 700; font-size: 12px; padding: 6px 12px;
  border: 2px solid var(--ink); border-radius: 8px; color: #fff;
  display: inline-block;
}
.badge--pink  { background: var(--pink); }
.badge--blue  { background: var(--blue); }
.badge--plain { background: var(--cream); color: var(--ink); }
.sticker {
  position: absolute; color: #fff; border: 2px solid var(--ink);
  font-weight: 700; font-size: 12px; padding: 8px 14px; border-radius: 10px;
}

/* ---------- Section label ---------- */
.eyebrow { font-weight: 700; font-size: 15px; letter-spacing: .06em; margin-bottom: 22px; }
.eyebrow--home { font-weight: 600; font-size: 13px; letter-spacing: .1em; color: var(--blue); margin-bottom: 18px; }

/* ---------- Cards / shadow utilities ---------- */
.card      { border: 3px solid var(--ink); border-radius: 20px; }
.shadow    { box-shadow: var(--shadow); }
.shadow-sm { box-shadow: var(--shadow-sm); }

/* ---------- Screen / phone placeholders ---------- */
.screen {
  border: 2px solid var(--ink); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font: 600 10px/1 'JetBrains Mono', monospace;
}
.screen--pink { background: repeating-linear-gradient(135deg,#ffcede,#ffcede 9px,#ffbcd3 9px,#ffbcd3 18px); color: #c14e7e; }
.screen--blue { background: repeating-linear-gradient(135deg,#cbd6ff,#cbd6ff 9px,#b6c6ff 9px,#b6c6ff 18px); color: #4a5fc1; }
/* Real looping media filling a .screen slot. Keeps the ink border + radius of
   the placeholder it replaced (inner radius = .screen's 12px minus its 2px
   border). object-fit:cover rather than letterboxing, so the loop still reads
   correctly at whatever width the card happens to be. */
.screen-media {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: 10px;
}
.phone {
  width: 260px; height: 400px; margin: 0 auto;
  border: 3px solid var(--ink); border-radius: 34px;
  box-shadow: 10px 10px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  font: 600 11px/1 'JetBrains Mono', monospace;
}
/* Real hero media (video or image), framed exactly like the placeholder it
   replaced. Must stay AFTER .phone — same specificity, so source order is what
   unsets the fixed height. Default ratio is 9:16; each page sets its file's
   exact ratio inline so nothing gets cropped. */
.phone--media {
  display: block; height: auto; padding: 0;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--cream);
}

/* ---------- App icons ---------- */
/* Source icons are full-bleed squares, so the rounding/border lives here. */
.app-icon {
  border: 2px solid var(--ink); border-radius: 22.5%;
  flex-shrink: 0; object-fit: cover;
}
.app-icon--sm { width: 54px; height: 54px; box-shadow: var(--shadow-xs); }
.app-icon--lg {
  width: 96px; height: 96px; border-width: 3px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.titlerow { display: flex; align-items: center; gap: 14px; }

/* ---------- Home ---------- */
.hero { max-width: 1100px; margin: 0 auto; padding: 60px 42px 44px; position: relative; overflow: hidden; }
.hero-title { font-weight: 700; font-size: 74px; line-height: .98; letter-spacing: -.03em; margin: 0; max-width: 760px; }
.hi-mark { background: var(--yellow); padding: 0 10px; border: 2px solid var(--ink); border-radius: 10px; display: inline-block; transform: rotate(-1.5deg); }
.hero-sub { max-width: 460px; margin: 26px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
/* auto-fit so the shelf fills itself whether there are 2 apps or 3 */
.shelf { max-width: 1100px; margin: 0 auto; padding: 0 42px 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.app-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.app-card--pink { background: var(--pink-tint); }
.app-card--blue { background: var(--blue-tint); }
.app-card__top { display: flex; justify-content: space-between; align-items: center; }
.app-card__num { font-weight: 700; font-size: 20px; }
.app-card__screen { height: 150px; }
.app-card__name { font-weight: 700; font-size: 24px; }
.app-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- App detail ---------- */
.app-hero { border-bottom: 3px solid var(--ink); }
.app-hero--pink { background: var(--pink-tint); }
.app-hero--blue { background: var(--blue-tint); }
.app-hero-inner { max-width: 1100px; margin: 0 auto; padding: 26px 42px 52px; }
.app-hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: center; margin-top: 30px; }
.app-hero-title { font-weight: 700; font-size: 66px; line-height: .98; letter-spacing: -.03em; margin: 0; }
.app-hero-desc { max-width: 400px; margin: 22px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.tagrow { display: flex; gap: 10px; margin-bottom: 20px; }
.storebtns { display: flex; gap: 12px; margin-top: 28px; }
.stats { display: flex; gap: 24px; margin-top: 26px; font-size: 13px; }
.stats b { font-size: 16px; }

.section { max-width: 1100px; margin: 0 auto; padding: 44px 42px 0; }
.section--first { padding-top: 56px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.feature { padding: 26px; }
.feature__icon { font-size: 30px; margin-bottom: 14px; }
.feature__title { font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.screens-row { display: flex; gap: 22px; }
.screens-row .screen { flex: 1; height: 300px; border-width: 3px; border-radius: 20px; }
/* Slots holding a real app-screen loop are phone-shaped instead of the squat
   placeholder block. Must stay AFTER the height:300px rule — same specificity,
   source order unsets the fixed height. */
.screens-row .screen--phone { height: auto; aspect-ratio: 9 / 19.5; overflow: hidden; }
.screens-row .screen--phone .screen-media { border-radius: 17px; }
.docbtns { display: flex; gap: 14px; flex-wrap: wrap; }
.docbtn { background: var(--cream); border: 2px solid var(--ink); border-radius: 100px; padding: 12px 20px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-xs); }
.section-note { max-width: 640px; margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: var(--muted); }

.cta-wrap { max-width: 1100px; margin: 44px auto 60px; padding: 0 42px; }
.cta { border: 3px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #fff; }
.cta--pink { background: var(--pink); }
.cta--blue { background: var(--blue); }
.cta h2 { font-weight: 700; font-size: 34px; letter-spacing: -.02em; }
.cta p { margin: 10px 0 0; font-size: 15px; opacity: .9; }

/* ---------- Waitlist (Netlify form) ---------- */
.waitlist { max-width: 440px; margin-top: 26px; }
.waitlist-form { display: flex; gap: 10px; }
.waitlist-form .field { flex: 1; min-width: 0; }
.btn--join {
  background: var(--green); color: #fff; border-color: var(--ink);
  font-size: 14px; padding: 13px 20px; box-shadow: var(--shadow-xs);
  white-space: nowrap;
}
.waitlist-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.waitlist-note--light { color: #fff; opacity: .85; }
/* .cta p is more specific than .waitlist-note, so restate the size here. */
.cta .waitlist { margin-top: 0; min-width: 360px; }
.cta .waitlist-note { font-size: 12px; margin: 10px 0 0; }

/* ---------- Legal hub ---------- */
.hub { max-width: 1100px; margin: 0 auto; padding: 40px 42px 60px; }
.hub h1 { font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.03em; margin: 28px 0 0; }
.hub-intro { max-width: 560px; margin: 18px 0 36px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hub-card { padding: 26px; }
.hub-card--pink { background: var(--pink-tint); }
.hub-card--blue { background: var(--blue-tint); }
.hub-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hub-card__num { font-weight: 700; font-size: 18px; }
.hub-card__name { font-weight: 700; font-size: 26px; margin-bottom: 16px; }
.hub-links { display: flex; flex-direction: column; gap: 10px; }
.hub-link { background: var(--cream); border: 2px solid var(--ink); border-radius: 12px; padding: 13px 16px; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }

/* ---------- Legal doc ---------- */
.doc-hero { border-bottom: 3px solid var(--ink); }
.doc-hero--pink { background: var(--pink-tint); }
.doc-hero--blue { background: var(--blue-tint); }
.doc-hero-inner { max-width: 1100px; margin: 0 auto; padding: 26px 42px 40px; }
.doc-back { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-tags { display: flex; gap: 10px; margin: 26px 0 14px; }
.doc-title { font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -.03em; margin: 0; }
.doc-eff { margin: 14px 0 0; font: 500 13px/1.5 'JetBrains Mono', monospace; color: #5a5148; }
.doc-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.doc-tab { font-weight: 700; font-size: 13px; padding: 11px 18px; border: 2px solid var(--ink); border-radius: 100px; background: var(--cream); color: var(--ink); cursor: pointer; }
.doc-tab--active { color: #fff; }
.doc-body { max-width: 780px; margin: 0 auto; padding: 44px 42px 20px; }
.doc-body h2 { font-weight: 700; font-size: 22px; letter-spacing: -.01em; margin: 28px 0 10px; }
.doc-body p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: #3a3a3a; }
.doc-lead { font-weight: 600; font-size: 17px !important; line-height: 1.55 !important; color: var(--ink) !important; margin-bottom: 20px !important; }
.doc-list { margin: 0 0 10px; padding-left: 20px; }
.doc-list li { font-size: 15px; line-height: 1.65; color: #3a3a3a; margin-bottom: 6px; }
.doc-foot { max-width: 780px; margin: 0 auto; padding: 20px 42px 60px; }
.doc-foot__inner { border-top: 2px solid var(--ink); padding-top: 20px; font: 500 12px/1.6 'JetBrains Mono', monospace; color: #8a8272; }
.doc-foot__inner b { color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  margin-top: auto; border-top: 3px solid var(--ink);
  padding: 26px 42px; display: flex; justify-content: space-between;
  align-items: center; background: var(--blue); color: #fff;
}
.footer-links { display: flex; gap: 20px; font-weight: 600; font-size: 13px; }
.footer-copy { font-weight: 600; font-size: 12px; }

/* ---------- Contact modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20,20,20,.55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: osf-fade .18s ease;
}
.modal[hidden] { display: none; }
.modal-panel {
  width: 100%; max-width: 460px; background: var(--cream);
  border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 12px 12px 0 var(--ink); padding: 34px; position: relative;
  animation: osf-pop .28s cubic-bezier(.2,.8,.3,1.2);
}
.modal-close {
  cursor: pointer; position: absolute; top: 20px; right: 20px;
  width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; background: var(--yellow);
}
.modal-emoji { font-size: 34px; margin-bottom: 8px; }
.modal-title { font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.modal-sub { margin: 8px 0 22px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 12px; }
.field {
  font-family: 'Space Grotesk', sans-serif; font-size: 14px;
  padding: 13px 15px; border: 2px solid var(--ink); border-radius: 12px;
  background: #fff; outline: none; width: 100%;
}
textarea.field { resize: none; }
.modal-mail { margin-top: 16px; font: 500 12px/1.5 'JetBrains Mono', monospace; color: #8a8272; text-align: center; }
.modal-mail a { color: #8a8272; text-decoration: underline; }

/* ---------- Animations ---------- */
@keyframes osf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes osf-pop  { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.fade { animation: osf-fade .25s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .wrap, .hero, .shelf, .app-hero-inner, .section, .cta-wrap, .hub,
  .doc-hero-inner, .doc-body, .doc-foot { padding-left: 22px; padding-right: 22px; }
  .nav-inner, .footer { padding-left: 22px; padding-right: 22px; }
  .hero { padding-top: 40px; }
  .hero-title { font-size: 46px; }
  .hero .sticker { position: static; display: inline-block; transform: none !important; margin: 0 8px 8px 0; }
  .shelf { grid-template-columns: 1fr; }
  .app-hero-grid { grid-template-columns: 1fr; }
  .app-hero-title { font-size: 48px; }
  .feature-grid { grid-template-columns: 1fr; }
  .screens-row { flex-direction: column; }
  /* stacked phone slots shouldn't balloon to full width */
  .screens-row .screen--phone { width: min(100%, 320px); margin: 0 auto; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta h2 { font-size: 26px; }
  .hub h1 { font-size: 40px; }
  .hub-grid { grid-template-columns: 1fr; }
  .doc-title { font-size: 38px; }
  .stats { flex-wrap: wrap; gap: 14px; }
  .storebtns { flex-wrap: wrap; }
  .cta .waitlist { min-width: 0; width: 100%; }
}
@media (max-width: 520px) {
  .waitlist-form { flex-direction: column; }
  .btn--join { width: 100%; }
}
@media (max-width: 520px) {
  .nav-links { gap: 6px; }
  .navlink { padding: 8px 13px; }
  .hero-title { font-size: 38px; }
}
