/* =============================================
   humble.builders — Main Stylesheet
   ============================================= */

/* ===================== TOKENS ===================== */
:root {
  /* Brand */
  --ink: #1E085D;
  --ink-20: #D2CFE0;
  --pink: #FEBBCC;
  --pink-20: #FFF1F5;
  --purple: #4705D0;
  --purple-20: #D4C1F6;

  /* Neutrals */
  --snow: #FDFEFC;
  --chalk: #F6F5F0;
  --stone: #F8F3F0;
  --rock: #DAD2CE;

  /* Text */
  --charcoal: #1D2939;

  /* Accents */
  --mint: #45DCC1;
  --mint-20: #DAF8F3;
  --yellow: #FFC600;
  --yellow-20: #FFF4CC;
  --raspberry: #E01E5A;
  --violet: #A183FF;
  --violet-20: #ECE6FF;

  /* Spacing */
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 48px;
  --sp-xl: 64px;
  --sp-2xl: 96px;

  /* Typography */
  --font: 'Manrope', sans-serif;

  /* Layout */
  --max-w: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.5;
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 254, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rock);
  padding: 0 var(--sp-md);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  text-decoration: none;
  color: var(--ink);
}

.nav__logo {
  width: 32px;
  height: 32px;
  background: var(--ink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo-letter {
  color: var(--pink);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.nav__title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav__title span {
  color: var(--purple);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  background: var(--ink);
  color: white;
  padding: 8px 20px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav__cta:hover {
  background: var(--purple);
}

/* ===================== CHROME LOGO (shared across buttons) ===================== */
.btn__chrome-logo {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--font);
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 28px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--purple);
  color: white;
  padding: 14px 28px;
  font-size: 16px;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(71, 5, 208, 0.25);
}

.btn--primary-lg {
  font-size: 18px;
  padding: 16px 36px;
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--ink);
}

.btn--secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* ===================== SECTIONS ===================== */
.section {
  padding: var(--sp-2xl) var(--sp-md);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__inner--center {
  text-align: center;
}

.section--stone {
  background: var(--stone);
}

.section--chalk {
  background: var(--chalk);
}

.section--dark {
  background: var(--ink);
}

.section__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: var(--sp-xs);
}

.section__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}

.section__text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--sp-sm);
}

.section__text--constrained {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-sm);
}

.section__text--muted {
  font-size: 14px;
  color: var(--rock);
  margin-top: var(--sp-md);
}

/* ===================== HERO ===================== */
.hero {
  padding: 120px var(--sp-md) var(--sp-xl);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: left;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--violet-20);
  color: var(--purple);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--sp-md);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-sm);
}

.hero__sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--charcoal);
  max-width: 560px;
  margin-bottom: var(--sp-lg);
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.hero__note {
  margin-top: var(--sp-sm);
  font-size: 13px;
  color: var(--rock);
}

/* ===================== PAIN CARDS ===================== */
.pain-grid {
  display: grid;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

.pain-card {
  background: white;
  border-radius: 16px;
  padding: var(--sp-md);
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
  transition: transform 0.15s;
}

.pain-card:hover {
  transform: translateY(-2px);
}

.pain-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pain-card__icon--tabs    { background: var(--pink-20); }
.pain-card__icon--context { background: var(--yellow-20); }
.pain-card__icon--time    { background: var(--violet-20); }
.pain-card__icon--proof   { background: var(--mint-20); }

.pain-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.pain-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--charcoal);
}

/* ===================== TAB VISUAL ===================== */
.tab-visual {
  margin: var(--sp-lg) 0 0;
  background: white;
  border-radius: 16px;
  padding: var(--sp-md);
  overflow: hidden;
}

.tab-visual__bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: var(--sp-xs);
  margin-bottom: var(--sp-sm);
}

.tab-visual__pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px 8px 0 0;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-visual__pill--active {
  background: var(--chalk);
  color: var(--ink);
  border-bottom: 2px solid var(--purple);
}

.tab-visual__pill--stale {
  background: var(--stone);
  color: var(--rock);
}

.tab-visual__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tab-visual__dot--green  { background: var(--mint); }
.tab-visual__dot--yellow { background: var(--yellow); }
.tab-visual__dot--red    { background: var(--raspberry); }
.tab-visual__dot--grey   { background: var(--rock); }

.tab-visual__caption {
  font-size: 13px;
  color: var(--rock);
  text-align: center;
  font-style: italic;
}

/* ===================== STEPS ===================== */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}

.step {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
}

.step__number {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.step__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--charcoal);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
}

.tag--live {
  background: var(--mint-20);
  color: #0d7a65;
}

.tag--soon {
  background: var(--violet-20);
  color: var(--purple);
}

/* ===================== NUDGE DEMO ===================== */
.nudge {
  background: white;
  border-radius: 16px;
  padding: var(--sp-md);
  margin-top: var(--sp-md);
  border-left: 4px solid var(--purple);
}

.nudge__header {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-xs);
}

.nudge__logo {
  width: 24px;
  height: 24px;
  background: var(--ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

.nudge__from {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.nudge__time {
  font-size: 12px;
  color: var(--rock);
  margin-left: auto;
}

.nudge__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--charcoal);
  margin-bottom: var(--sp-sm);
}

.nudge__context {
  font-size: 13px;
  color: var(--rock);
  font-style: italic;
  margin-bottom: var(--sp-sm);
}

.nudge__actions {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.nudge__btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: transform 0.1s;
}

.nudge__btn:hover {
  transform: scale(1.03);
}

.nudge__btn--resume {
  background: var(--ink);
  color: white;
}

.nudge__btn--letgo {
  background: var(--chalk);
  color: var(--charcoal);
}

.nudge__btn--later {
  background: transparent;
  color: var(--rock);
  border: 1px solid var(--rock);
}

/* ===================== JOURNAL ===================== */
.journal {
  background: white;
  border-radius: 16px;
  padding: var(--sp-md);
  margin-top: var(--sp-md);
  font-size: 14px;
}

.journal__day {
  margin-bottom: var(--sp-sm);
}

.journal__date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rock);
  margin-bottom: var(--sp-xs);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--chalk);
}

.journal__entry {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}

.journal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.journal__dot--purple { background: var(--purple); }
.journal__dot--mint   { background: var(--mint); }
.journal__dot--violet { background: var(--violet); }
.journal__dot--pink   { background: var(--pink); }

.journal__entry-text {
  flex: 1;
}

.journal__entry-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.journal__entry-meta {
  font-size: 12px;
  color: var(--rock);
  margin-top: 2px;
}

/* ===================== TOOLS ROW ===================== */
.tools-row {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: var(--sp-md);
  padding: var(--sp-md) 0;
}

.tool-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 10px 18px;
  background: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.tool-badge__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-badge__icon svg {
  display: block;
}

.tool-badge__icon--claude  { background: #D97706; }
.tool-badge__icon--chatgpt { background: #10A37F; }
.tool-badge__icon--gemini  { background: #4285F4; }
.tool-badge__icon--cursor  { background: #000; }
.tool-badge__icon--replit  { background: #F26522; }
.tool-badge__icon--notion  { background: #000; }
.tool-badge__icon--airtable { background: #18BFFF; }

/* ===================== QUOTE ===================== */
.quote {
  padding: var(--sp-2xl) var(--sp-md);
  text-align: center;
  background: var(--ink);
}

.quote__text {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  color: white;
  line-height: 1.5;
  font-style: italic;
}

.quote__cite {
  display: block;
  margin-top: var(--sp-sm);
  font-size: 14px;
  font-style: normal;
  color: var(--pink);
  font-weight: 600;
}

/* ===================== FINAL CTA ===================== */
.final-cta {
  padding: var(--sp-2xl) var(--sp-md);
  text-align: center;
  background: var(--stone);
}

.final-cta__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-xs);
}

.final-cta__text {
  font-size: 16px;
  color: var(--charcoal);
  margin-bottom: var(--sp-md);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__note {
  margin-top: var(--sp-sm);
  font-size: 13px;
  color: var(--rock);
}

/* ===================== FOOTER ===================== */
.footer {
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
  font-size: 13px;
  color: var(--rock);
  background: var(--snow);
  border-top: 1px solid var(--chalk);
}

.footer a {
  color: var(--purple);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__links {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  margin-bottom: var(--sp-sm);
  flex-wrap: wrap;
}

/* ===================== UTILITIES ===================== */
.highlight {
  background: linear-gradient(to top, var(--pink-20) 40%, transparent 40%);
  padding: 0 2px;
}

/* ===================== ANIMATIONS ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .tools-row {
    gap: var(--sp-sm);
  }

  .tool-badge {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 96px var(--sp-sm) var(--sp-lg);
  }

  .section {
    padding: var(--sp-xl) var(--sp-sm);
  }

  .step {
    flex-direction: column;
  }

  .hero__cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .tab-visual__bar {
    gap: 2px;
  }

  .nudge__actions {
    flex-direction: column;
  }

  .nudge__btn {
    width: 100%;
    text-align: center;
  }

  .final-cta {
    padding: var(--sp-xl) var(--sp-sm);
  }

  .quote {
    padding: var(--sp-xl) var(--sp-sm);
  }

  .tools-row {
    gap: var(--sp-xs);
  }

  .tool-badge {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  .footer__links {
    gap: var(--sp-sm);
  }

  .nav {
    padding: 0 var(--sp-sm);
  }
}
