/* FSMsync shared design system — Phase 1 (2026-08-26).
   Loaded with a ?v= version query; bump it in every page that links this file
   whenever this file changes (no Cache-Control on the host, browsers cache
   heuristically). Palette is the long-standing dark-pumpkin brand. */

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

:root {
  --pumpkin:      #D4650E;
  --pumpkin-dark: #B8520A;
  --pumpkin-glow: #E8760F;
  --ember:        #FF8A3D;
  --dark:         #0E1117;
  --dark-mid:     #161B22;
  --dark-card:    #1C2128;
  --dark-border:  #2D333B;
  --dark-hover:   #373E47;
  --text:         #E6EDF3;
  --text-muted:   #8B949E;
  --text-dim:     #6E7681;
  --radius:       6px;
  --radius-lg:    12px;
  --font-display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ── BUTTONS ─────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pumpkin);
  color: var(--dark);
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font: 600 0.92rem var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--pumpkin-glow); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--dark-border);
  color: var(--text);
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font: 500 0.92rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--dark-hover); background: var(--dark-card); }

/* ── NAV ─────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn-primary { color: var(--dark); }
.nav-cta { margin-left: 0.5rem; }

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding: 9rem 0 4.5rem;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* grayscale + darkening baked into the file at encode; only contrast here */
  filter: contrast(1.06);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 17, 23, 0.60) 0%, rgba(14, 17, 23, 0.35) 45%, var(--dark) 97%),
    linear-gradient(75deg, rgba(212, 101, 14, 0.14), transparent 55%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.3rem);
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.25rem;
}
.hero-actions {
  display: flex;
  gap: 1rem 1.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-play {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-play:hover { color: var(--text); }
.hero-fine { font-size: 0.8rem; color: var(--text-dim); }
.hero-trades {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(45, 51, 59, 0.7);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── WORKDAY TOUR ────────────────────────── */
#workday { padding: 6.5rem 0; border-top: 1px solid var(--dark-border); }
.tour-moments { list-style: none; }
.tour-moment { padding: 3rem 0; border-top: 1px solid var(--dark-border); }
.tour-moment:first-child { border-top: none; }
.tour-time {
  display: inline-block;
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--pumpkin);
  text-decoration: none;
}
.tour-moment h3 {
  font: 600 0.85rem var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0.4rem 0 0.6rem;
}
.tour-line { font-size: 1.22rem; color: var(--text); max-width: 46ch; }
.tour-note { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.35rem; }
.tour-figure { margin-top: 1.75rem; }
.frame-browser {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.frame-browser::before {
  content: 'app.fsmsync.com';
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  font: 500 0.68rem var(--font-mono);
  color: var(--text-dim);
  background: var(--dark-mid);
  border-bottom: 1px solid var(--dark-border);
}
.frame-browser img, .frame-phone img { display: block; width: 100%; height: auto; }
.frame-phone {
  width: min(300px, 80vw);
  margin-inline: auto;
  background: #000;
  border: 2px solid var(--dark-border);
  border-radius: 34px;
  padding: 9px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.frame-phone img { border-radius: 25px; }
.tour-panel { display: none; }

@media (min-width: 1000px) {
  .tour-enhanced .tour {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: start;
  }
  .tour-enhanced .tour-moment {
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: none;
    opacity: 0.35;
    transition: opacity 0.3s;
  }
  .tour-enhanced .tour-moment[aria-current="step"] { opacity: 1; }
  .tour-enhanced .tour-figure { display: none; }
  .tour-enhanced .tour-panel { display: block; position: sticky; top: 96px; }
  .tour-enhanced .tour-panel img { transition: opacity 0.22s; }
  .tour-enhanced .tour-panel .frame-phone { width: min(300px, 30vw); }
}

/* ── SECTION HEADS ───────────────────────── */
.section-head { margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--text-muted); max-width: 52ch; }

/* ── TOOLBOX ─────────────────────────────── */
#features, #founder, #pricing { padding: 6.5rem 0; border-top: 1px solid var(--dark-border); }
.toolbox { list-style: none; columns: 2; column-gap: 4rem; max-width: 1000px; }
.toolbox li {
  break-inside: avoid;
  padding: 0.9rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.toolbox strong { color: var(--text); font-weight: 600; }

/* ── FOUNDER ─────────────────────────────── */
.founder-note { max-width: 62ch; font-size: 1.15rem; color: var(--text); line-height: 1.75; }
.founder-note footer { margin-top: 1.25rem; color: var(--text-muted); font-size: 0.9rem; }

/* ── PROOF STRIP ─────────────────────────── */
#proof { border-top: 1px solid var(--dark-border); background: var(--dark-mid); padding: 2.5rem 0; }
.proof-row { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.play-badge-link { flex-shrink: 0; display: inline-flex; }
.play-badge { height: 60px; width: auto; }
.proof-fact { font-size: 0.85rem; color: var(--text-muted); max-width: 44ch; }
.proof-date { display: block; color: var(--text-dim); font-size: 0.75rem; margin-top: 0.3rem; }

/* ── PRICING ─────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pricing-card {
  padding: 3rem 2.25rem;
  background: var(--dark-mid);
  border-right: 1px solid var(--dark-border);
  position: relative;
  transition: background 0.3s;
}
.pricing-card:last-child { border-right: none; }
.pricing-card:hover { background: var(--dark-card); }
.pricing-card.featured { background: var(--dark-card); }
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pumpkin), var(--ember));
}
.pricing-badge {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pumpkin);
  background: rgba(212, 101, 14, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.pricing-plan {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.pricing-amount { font-size: 3.4rem; color: var(--text); margin-bottom: 0.25rem; }
.pricing-period { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.25rem; }
.pricing-seats { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.pricing-divider { height: 1px; background: var(--dark-border); margin-bottom: 2rem; }
.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pricing-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--pumpkin);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}
.pricing-cta .btn-primary,
.pricing-cta .btn-ghost { width: 100%; justify-content: center; }
.pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── CTA BANNER ──────────────────────────── */
#cta-banner {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  text-align: center;
  border-top: 1px solid var(--dark-border);
}
.cta-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--dark) 0%, rgba(14, 17, 23, 0.55) 40%, var(--dark) 100%);
}
.cta-inner { position: relative; z-index: 1; max-width: 640px; }
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.cta-inner p { color: var(--text-muted); margin-bottom: 2.25rem; }

/* ── FOOTER ──────────────────────────────── */
footer {
  border-top: 1px solid var(--dark-border);
  padding: 2.5rem 2rem;
  background: var(--dark);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-logo img { height: 24px; width: auto; }
.footer-by { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; list-style: none; }
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 0.72rem; color: var(--text-dim); }
.footer-disclaimer {
  max-width: 1140px;
  margin: 1.25rem auto 0;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── REVEAL / MOTION ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  .toolbox { columns: 1; }
  .proof-row { gap: 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { border-right: none; border-bottom: 1px solid var(--dark-border); }
  .pricing-card:last-child { border-bottom: none; }
}

@media (max-width: 680px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links li:not(:nth-last-child(-n+2)) { display: none; } /* keep Login + CTA on mobile */
  .container { padding: 0 1.25rem; }
  .hero { min-height: 72vh; padding: 7rem 0 3.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-disclaimer { text-align: center; }
}
