/*
Theme Name:  ToolBelt
Theme URI:   https://usetoolbelt.com
Author:      ToolBelt
Description: Official marketing theme for ToolBelt — work orders, assets, and docs for operations teams.
Version:     1.0.0
License:     Proprietary
Text Domain: toolbelt
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --brand:         #7866ff;
  --brand-dark:    #5f4fe0;
  --brand-deeper:  #4535c8;
  --brand-light:   #ede9ff;
  --brand-glow:    rgba(120, 102, 255, .38);

  /* Neutrals */
  --surface:       #ffffff;
  --bg:            #f7f6fd;
  --bg-alt:        #f0eeff;
  --border:        #e4e1f5;
  --border-soft:   rgba(120, 102, 255, .15);
  --text:          #12101e;
  --text-2:        #3d3a52;
  --muted:         #6b6888;
  --faint:         #a09dbf;

  /* Dark surface (hero) */
  --dark-bg:       #08060f;
  --dark-surface:  #0f0c1e;
  --dark-border:   rgba(255, 255, 255, .08);
  --dark-muted:    rgba(255, 255, 255, .55);
  --dark-faint:    rgba(255, 255, 255, .3);

  /* Status */
  --success:       #16a34a;
  --danger:        #dc2626;
  --warning:       #d97706;

  /* Radius */
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  18px;
  --r-xl:  28px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1),  0 2px 8px  rgba(0,0,0,.05);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.07);
  --shadow-brand: 0 8px 32px var(--brand-glow);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════ */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.wrap--sm  { max-width: 800px;  margin: 0 auto; padding: 0 var(--space-6); }
.wrap--xs  { max-width: 640px;  margin: 0 auto; padding: 0 var(--space-6); }

.section        { padding: var(--space-24) 0; }
.section--lg    { padding: 112px 0; }
.section--sm    { padding: var(--space-16) 0; }
.section--alt   { background: var(--bg); }
.section--dark  { background: var(--dark-bg); color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

.divider { border: none; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */
.display {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.05;
}
.h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
}
.lead--lg { font-size: 1.25rem; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #b09dff 60%, #e0d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label pill */
.label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-light);
  color: var(--brand);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.label--dark {
  background: rgba(120,102,255,.2);
  color: #c4b8ff;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: .875rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px var(--brand-glow);
}
.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

.btn--ghost-dark {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
  border: 1.5px solid var(--dark-border);
  backdrop-filter: blur(6px);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.2); }

.btn--white {
  background: #fff;
  color: var(--brand);
}
.btn--white:hover { box-shadow: 0 8px 32px rgba(0,0,0,.2); transform: translateY(-1px); color: var(--brand-dark); }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-group--center { justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-6);
}
.site-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.035em;
  color: var(--text);
  flex-shrink: 0;
}
.site-nav__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--brand-glow);
  flex-shrink: 0;
}
.site-nav__mark svg { width: 17px; height: 17px; }

.site-nav__links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  flex: 1;
  justify-content: center;
}
.site-nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
.site-nav__links a:hover,
.site-nav__links a.current { color: var(--brand); }

.site-nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}
.site-nav__signin {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
.site-nav__signin:hover { color: var(--text); }

/* Mobile hamburger */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}
.site-nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}

/* Mobile menu drawer */
.site-nav__mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  z-index: 400;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-3);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  overflow-y: auto;
}
.site-nav__mobile.is-open { display: flex; }
.site-nav__mobile a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.site-nav__mobile a:last-child { border: none; }
.site-nav__mobile .btn { margin-top: var(--space-4); text-align: center; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer { background: #08060f; color: rgba(255,255,255,.55); }

.site-footer__top {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-12);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}
.site-footer__brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: var(--space-3);
}
.site-footer__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-footer__mark svg { width: 15px; height: 15px; }
.site-footer__tagline { font-size: .875rem; line-height: 1.7; max-width: 280px; }

.site-footer__col h4 {
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: var(--space-5);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer__col a { font-size: .875rem; color: rgba(255,255,255,.45); transition: color .15s; }
.site-footer__col a:hover { color: rgba(255,255,255,.9); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: var(--space-5) var(--space-6);
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}

/* ═══════════════════════════════════════════════════════════════
   SCREENSHOT FRAME
═══════════════════════════════════════════════════════════════ */
.screen-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.07);
  background: var(--bg);
}
.screen-frame__bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.screen-frame__dot { width: 11px; height: 11px; border-radius: 50%; }
.screen-frame__dot--r { background: #ff5f57; }
.screen-frame__dot--y { background: #febc2e; }
.screen-frame__dot--g { background: #28c840; }
.screen-frame__url {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: .72rem;
  color: var(--faint);
  margin-left: 10px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.screen-frame img { width: 100%; display: block; }
.screen-frame__ph {
  background: linear-gradient(145deg, #ede9ff 0%, #ddd6ff 100%);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--brand);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  padding: var(--space-6);
}
.screen-frame__ph-icon { font-size: 2.8rem; opacity: .35; }
.screen-frame__ph small { font-weight: 400; opacity: .6; display: block; margin-top: 4px; }

.screen-frame--glow {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(120,102,255,.2),
              0 0 80px rgba(120,102,255,.12);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s, transform .18s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(120,102,255,.35);
  transform: translateY(-2px);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: var(--space-4);
}
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.card p  { font-size: .875rem; color: var(--muted); line-height: 1.65; }

/* Dark card variant */
.card--dark {
  background: rgba(255,255,255,.05);
  border-color: var(--dark-border);
  color: #fff;
}
.card--dark:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(120,102,255,.4);
  transform: translateY(-2px);
}
.card--dark .card__icon {
  background: rgba(120,102,255,.2);
  color: #c4b8ff;
}
.card--dark h3 { color: #fff; }
.card--dark p  { color: var(--dark-muted); }

/* ═══════════════════════════════════════════════════════════════
   FEATURE BULLETS
═══════════════════════════════════════════════════════════════ */
.bullets { display: flex; flex-direction: column; gap: 16px; }
.bullet  { display: flex; align-items: flex-start; gap: 12px; }
.bullet__dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: 900;
  margin-top: 2px;
}
.bullet__content strong { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 1px; }
.bullet__content span   { font-size: .875rem; color: var(--muted); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════
   FEATURE SPLITS
═══════════════════════════════════════════════════════════════ */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-split--flip { direction: rtl; }
.feature-split--flip > * { direction: ltr; }
.feature-split + .feature-split { margin-top: var(--space-20); }

.feature-split .h2 { margin-bottom: var(--space-4); }
.feature-split .lead { margin-bottom: var(--space-8); }

/* ═══════════════════════════════════════════════════════════════
   INTEGRATION CHIPS
═══════════════════════════════════════════════════════════════ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-8); }
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* ═══════════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.plan {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .18s;
}
.plan:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-light), var(--shadow-md);
}
.plan--featured:hover { transform: translateY(-3px); box-shadow: 0 0 0 4px var(--brand-light), var(--shadow-lg); }

.plan__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--brand-glow);
}
.plan__tier   { font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: var(--space-3); }
.plan__price  { margin-bottom: 4px; line-height: 1; }
.plan__amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -.05em; }
.plan__per    { font-size: .875rem; color: var(--muted); font-weight: 500; }
.plan__desc   { font-size: .875rem; color: var(--muted); margin-bottom: var(--space-6); }
.plan__hr     { border: none; border-top: 1px solid var(--border); margin: 0 0 var(--space-6); }
.plan__features { display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: var(--space-8); }
.plan__feature { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.5; }
.plan__check   { color: var(--success); font-weight: 900; flex-shrink: 0; margin-top: 1px; font-size: .85rem; }
.plan__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 700;
  transition: all .18s;
  margin-top: auto;
}
.plan--featured .plan__cta { background: var(--brand); color: #fff; box-shadow: 0 2px 8px var(--brand-glow); }
.plan--featured .plan__cta:hover { background: var(--brand-dark); box-shadow: var(--shadow-brand); color: #fff; }
.plan__cta--outline { border: 1.5px solid var(--border); color: var(--text); }
.plan__cta--outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.plan__note { text-align: center; font-size: .75rem; color: var(--faint); margin-top: 10px; }

/* ═══════════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════════ */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #3b27cc 0%, var(--brand) 45%, #9b8bff 100%);
  border-radius: var(--r-xl);
  padding: 88px 48px;
  text-align: center;
  color: #fff;
}
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner::before {
  width: 600px; height: 600px;
  background: rgba(255,255,255,.04);
  top: -300px; right: -150px;
}
.cta-banner::after {
  width: 400px; height: 400px;
  background: rgba(255,255,255,.04);
  bottom: -200px; left: -80px;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.05em;
  margin-bottom: 16px;
  position: relative;
}
.cta-banner p {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 520px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
  position: relative;
}
.cta-banner .btn-group { position: relative; }
.cta-banner__nudge {
  margin-top: var(--space-4);
  font-size: .8rem;
  opacity: .6;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-3         { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid   { grid-template-columns: 1fr; max-width: 460px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .feature-split, .grid-2 { grid-template-columns: 1fr; gap: var(--space-10); }
  .feature-split--flip { direction: ltr; }
  .site-nav__links  { display: none; }
  .site-nav__signin { display: none; }
  .site-nav__hamburger { display: flex; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .cta-banner { padding: 56px 24px; }
  .site-footer__top { grid-template-columns: 1fr; gap: var(--space-10); }
}
