/* ═══════════════════════════════════════════════════
   WorkGo — Shared Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; }

/* ── Tokens ── */
:root {
  --bg:      #FAFAFA;
  --surface: #FFFFFF;
  --card:    #F5F5F5;
  --border:  #EBEBEB;
  --border2: #D0D0D0;
  --text:    #111111;
  --sub:     #555555;
  --muted:   #888888;
  --green:   #10B981;
  --radius:  16px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pageIn .35s ease both;
}

/* ── Page entry ── */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
nav.scrolled { background: rgba(255,255,255,0.97); }

.logo {
  font-size: 17px; font-weight: 900; letter-spacing: -0.4px;
  color: var(--text); text-decoration: none;
}
.logo span { opacity: 0.4; }

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--sub);
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-cta {
  font-size: 13px; font-weight: 700;
  background: var(--text); color: var(--bg);
  border-radius: 100px; padding: 8px 18px;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.14); }
.nav-cta.active { outline: 2px solid var(--text); outline-offset: 3px; }

@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
}

/* ══════════════════════════════════════
   CONTAINER / SECTION
══════════════════════════════════════ */
.container { max-width: 1100px; margin: 0 auto; }
section { padding: 100px 24px; }

/* ══════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════ */
.eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--sub); margin-bottom: 12px;
}
.h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 900; letter-spacing: -1.8px;
  color: var(--text); line-height: 1.05; margin-bottom: 14px;
}
.h2 .dim { color: var(--sub); }
.lead {
  font-size: 16px; color: var(--sub); line-height: 1.75; max-width: 460px;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; border-radius: 100px;
  padding: 12px 22px; text-decoration: none;
  white-space: nowrap; border: none; font-family: inherit; cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark  { background: var(--text); color: #fff; }
.btn-dark:hover  { box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border2); }
.btn-outline:hover { border-color: #111; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.btn-ghost { background: rgba(0,0,0,0.04); color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: rgba(0,0,0,0.08); }
.btn-white { background: #fff; color: #111; }
.btn-white:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

/* ══════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ══════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════ */
.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero .h2 { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 16px; }
.page-hero .lead { margin: 0 auto; text-align: center; }

/* ══════════════════════════════════════
   STEP ICON CIRCLE
══════════════════════════════════════ */
.step-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--sub);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   CARD
══════════════════════════════════════ */
.card {
  border-radius: var(--radius); padding: 42px;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color .3s, transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.card.dark { background: #111; border-color: #111; color: #fff; }
.card.dark:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.3); }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); margin-bottom: 22px;
}
.card.dark .card-icon { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }

.card h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.6px; margin-bottom: 10px; color: var(--text); }
.card.dark h3 { color: #fff; }
.card > p { font-size: 14px; color: var(--sub); margin-bottom: 26px; line-height: 1.75; }
.card.dark > p { color: rgba(255,255,255,0.45); }

/* Feature list */
.feat-list { display: flex; flex-direction: column; gap: 12px; }
.feat-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--sub); line-height: 1.45;
}
.card.dark .feat-list li { color: rgba(255,255,255,0.5); }

.chk {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px; color: var(--sub);
}
.chk svg { width: 10px; height: 10px; }
.card.dark .chk { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

/* ══════════════════════════════════════
   STATS
══════════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--border); border-radius: var(--radius);
  overflow: hidden; gap: 1px; margin-top: 56px;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

.stat {
  background: var(--surface); padding: 44px 36px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .25s;
}
.stat:hover { background: var(--bg); }
.stat-num {
  font-size: 48px; font-weight: 900; color: var(--text);
  letter-spacing: -2.5px; line-height: 1;
}
.stat-label { font-size: 13px; color: var(--sub); font-weight: 500; }

/* ══════════════════════════════════════
   CTA BOX
══════════════════════════════════════ */
.cta-wrap { padding: 0 24px 100px; }
.cta-box {
  max-width: 1100px; margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 20px; padding: 88px 64px; text-align: center;
  position: relative; overflow: hidden; background: #111;
}
.cta-box .eyebrow { color: rgba(255,255,255,0.4); }
.cta-box .h2 { color: #fff; }
.cta-box .h2 .dim { color: rgba(255,255,255,0.35); }
.cta-box::before {
  content: '';
  position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute; inset: -1px; border-radius: 20px;
  background: linear-gradient(130deg, rgba(255,255,255,0.08), transparent 40%, transparent 60%, rgba(255,255,255,0.05));
  pointer-events: none;
}
@media (max-width: 640px) { .cta-box { padding: 52px 28px; border-radius: 16px; } }
.cta-box .lead { color: rgba(255,255,255,0.45); margin: 0 auto 44px; }
.cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

/* ══════════════════════════════════════
   WAITLIST FORM
══════════════════════════════════════ */
.waitlist-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.waitlist-input {
  padding: 12px 22px; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07); color: #fff;
  font-size: 14px; font-family: inherit; outline: none;
  width: 250px; transition: border-color .2s, background .2s;
}
.waitlist-input::placeholder { color: rgba(255,255,255,0.25); }
.waitlist-input:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); }
.waitlist-note { font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 0.3px; }
.waitlist-success {
  font-size: 13px; color: #fff; display: none; margin-top: 10px;
  align-items: center; justify-content: center; gap: 6px;
}
.waitlist-success.show { display: flex; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border); padding: 32px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; background: var(--surface);
}
@media (max-width: 640px) { footer { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }
.footer-logo { font-size: 16px; font-weight: 900; color: var(--text); text-decoration: none; letter-spacing: -0.3px; }
.footer-logo span { opacity: 0.35; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--sub); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════
   ACCORDION (FAQ)
══════════════════════════════════════ */
.accordion { border-top: 1px solid var(--border); margin-top: 48px; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; background: none; border: none; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; cursor: pointer; gap: 16px;
  text-align: left;
}
.accordion-trigger-text {
  font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.2px;
}
.accordion-icon {
  flex-shrink: 0; color: var(--sub);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  overflow: hidden; max-height: 0;
  transition: max-height .4s cubic-bezier(.16,1,.3,1);
}
.accordion-body-inner {
  padding: 0 0 22px;
  font-size: 15px; color: var(--sub); line-height: 1.75;
}

/* ══════════════════════════════════════
   TICKER
══════════════════════════════════════ */
.ticker {
  background: var(--bg); overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.ticker-track {
  display: flex; gap: 8px; width: max-content;
  animation: tick 32s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

.tick-pill {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  padding: 7px 16px; font-size: 12px; font-weight: 600; color: var(--sub);
  white-space: nowrap; transition: border-color .2s, color .2s;
}
.tick-pill:hover { border-color: var(--border2); color: var(--text); }
.tick-pill svg { flex-shrink: 0; }

/* ══════════════════════════════════════
   SPLIT GRID
══════════════════════════════════════ */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
@media (max-width: 720px) { .split-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   SETTINGS-GROUP PATTERN (mirrors app)
══════════════════════════════════════ */
.settings-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.settings-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); flex-shrink: 0;
}
.settings-row-text { flex: 1; }
.settings-row-label { font-size: 15px; font-weight: 500; color: var(--text); }
.settings-row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.settings-row-chevron { color: var(--muted); }

/* ══════════════════════════════════════
   INPUT (app-style)
══════════════════════════════════════ */
.input-field {
  background: var(--surface); border: 1.5px solid var(--border2);
  border-radius: 12px; padding: 12px 16px;
  font-size: 14px; font-family: inherit; color: var(--text);
  outline: none; width: 100%; transition: border-color .2s;
}
.input-field:focus { border-color: var(--text); }
.input-field::placeholder { color: var(--muted); }

/* ══════════════════════════════════════
   LOCATION PIN ICON HELPER
══════════════════════════════════════ */
.pin-icon { flex-shrink: 0; color: var(--muted); }

/* ══════════════════════════════════════
   SECTION BG ALTERNATION
══════════════════════════════════════ */
.bg-surface { background: var(--surface); }
.bg-bg      { background: var(--bg); }
