/* it is your birthday. — polished cringe design system.
   Candy colours, hard offset shadows, huge type. No frameworks, no fonts,
   no build step. The joke only lands if the execution is clean. */

:root {
  --ink: #1b1023;
  --paper: #fff6ee;
  --pink: #ff2e88;
  --purple: #8338ec;
  --orange: #ff9e1f;
  --yellow: #ffd23f;
  --mint: #3ddc97;
  --sky: #4cc9f0;
  --slack: #4a154b;
  --shadow: 0.28rem 0.28rem 0 var(--ink);
  --shadow-lg: 0.5rem 0.5rem 0 var(--ink);
  --radius: 1.1rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 46, 136, .10) 0 14rem, transparent 14rem),
    radial-gradient(circle at 88% 6%, rgba(131, 56, 236, .10) 0 12rem, transparent 12rem),
    radial-gradient(circle at 80% 82%, rgba(255, 210, 63, .16) 0 16rem, transparent 16rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--purple); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--ink);
  color: var(--yellow);
  padding: .15em .45em;
  border-radius: .45em;
  overflow-wrap: break-word;   /* long commands must wrap, not widen the page */
}

/* ---------------------------------------------------------------- header */

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}

.logo img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .7rem;
  border: 2px solid var(--ink);
  background: #fff;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-weight: 700;
  font-size: .95rem;
}

.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--pink); }
@media (max-width: 40rem) {
  .site-nav .nav-link { display: none; }
  .kicker { font-size: .8rem; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  padding: .65rem 1.15rem;
  border: 3px solid var(--ink);
  border-radius: .9rem;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 0.42rem 0.42rem 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0.1rem 0.1rem 0 var(--ink); }

.btn-lg { font-size: 1.25rem; padding: .95rem 1.7rem; border-radius: 1.1rem; }

.btn-ghost { background: #fff; color: var(--ink); }

.btn .slack-mark { width: 1.2em; height: 1.2em; flex: none; }

/* ------------------------------------------------------------------ hero */

.hero { text-align: center; padding: 4.5rem 0 3.5rem; }

.kicker {
  display: inline-block;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: .92rem;
  padding: .3rem 1rem;
  margin-bottom: 1.6rem;
  transform: rotate(-1.5deg);
}

.hero h1 {
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: .95;
  letter-spacing: -.04em;
  font-weight: 900;
  background: linear-gradient(100deg, var(--pink) 10%, var(--purple) 45%, var(--orange) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .1em;         /* keep descenders inside the clip box */
}

.tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 600;
  max-width: 36rem;
  margin: 1.4rem auto 2.2rem;
}

.fine { font-size: .92rem; font-weight: 600; opacity: .65; margin-top: 1.1rem; }

/* -------------------------------------------------------------- sections */

section { padding: 3.2rem 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 2.2rem;
}

/* ------------------------------------------------------------ slack mock */

.slack-mock {
  max-width: 40rem;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: var(--slack);
  color: #fff;
  padding: .55rem .9rem;
  font-size: .85rem;
  font-weight: 700;
}

.mock-bar .dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.mock-title { margin-left: .4rem; opacity: .95; }

.msg { display: flex; gap: .75rem; padding: 1rem 1.1rem 1.2rem; }

.msg .avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  flex: none;
  background: #fff;
  border: 1px solid #e0dcd6;
}

.msg-head { font-size: .95rem; display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.msg-head strong { font-weight: 900; }

.app-badge {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: #e8e8e8;
  color: #616061;
  border-radius: .25rem;
  padding: .05rem .3rem;
}

.msg-time { font-size: .78rem; color: #868686; }

.msg-text { font-size: .95rem; line-height: 1.5; margin-top: .15rem; color: #1d1c1d; }

.mention {
  color: #1264a3;
  background: #e8f5fa;
  border-radius: .25rem;
  padding: 0 .15rem;
  font-weight: 600;
}

.gif {
  display: block;
  margin-top: .7rem;
  width: 100%;
  max-width: 20rem;
  border-radius: .6rem;
  border: 1px solid #e0dcd6;
}

.reactions { display: flex; gap: .35rem; margin-top: .7rem; flex-wrap: wrap; }

.reaction {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 600;
  color: #1d1c1d;
  background: #f8f8f8;
  border: 1px solid #dddddd;
  border-radius: 999px;
  padding: .12rem .55rem;
}

.reaction.mine { background: #e8f5fa; border-color: #1264a3; color: #1264a3; }

.demo-note {
  text-align: center;
  font-weight: 600;
  opacity: .7;
  max-width: 32rem;
  margin: 1.6rem auto 0;
}

/* DM variant — smaller, sits beside copy */
.slack-mock.dm { max-width: 30rem; }
.slack-mock.dm .msg-text { font-size: .9rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 48rem) { .two-col { grid-template-columns: 1fr; } }

.two-col h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.two-col p { margin-bottom: .8rem; }

/* ------------------------------------------------------------- cards */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 48rem) { .cards { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
}

.card h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: .5rem; }
.card p { font-size: .95rem; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: .8rem;
  box-shadow: .18rem .18rem 0 var(--ink);
}

.cards > :nth-child(3n+1) .step-num { background: var(--yellow); }
.cards > :nth-child(3n+2) .step-num { background: var(--mint); }
.cards > :nth-child(3n+3) .step-num { background: var(--sky); }

.feature { transform: rotate(0deg); }
.cards > :nth-child(odd).feature { transform: rotate(-.6deg); }
.cards > :nth-child(even).feature { transform: rotate(.6deg); }
.feature .emoji { font-size: 1.8rem; display: block; margin-bottom: .5rem; }

/* --------------------------------------------------------------- FAQ */

.faq { max-width: 44rem; margin: 0 auto; display: grid; gap: .9rem; }

.faq details {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.3rem;
}

.faq summary {
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "🎁"; transition: transform .2s ease; }
.faq details[open] summary::before { content: "🎉"; }
.faq details p { padding-top: .7rem; font-size: .96rem; }

/* --------------------------------------------------------------- CTA */

.cta-final {
  text-align: center;
  background: linear-gradient(110deg, var(--pink), var(--purple));
  border: 3px solid var(--ink);
  border-radius: 1.6rem;
  box-shadow: var(--shadow-lg);
  color: #fff;
  padding: 3.5rem 1.5rem;
  margin: 2rem 0 1rem;
}

.cta-final h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}

.cta-final p { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.8rem; opacity: .95; }

.cta-final .btn { background: #fff; color: var(--ink); }

/* -------------------------------------------------------------- footer */

.site-footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  font-size: .9rem;
  font-weight: 600;
}

.site-footer nav { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-bottom: .7rem; }
.site-footer a { color: var(--ink); }
.site-footer .company { opacity: .55; }

/* ----------------------------------------------------- article (legal) */

.article {
  max-width: 42rem;
  margin: 2.5rem auto 4rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem 2.2rem;
}

.article h1 { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.article h2 { font-size: 1.2rem; font-weight: 800; margin: 1.6rem 0 .5rem; }
.article p, .article li { margin-bottom: .7rem; }
.article ul, .article ol { padding-left: 1.4rem; }
@media (max-width: 40rem) { .article { padding: 1.6rem 1.3rem; } }

/* checklist on /installed */
.checklist {
  text-align: left;
  max-width: 34rem;
  margin: 2rem auto;
  list-style: none;
  display: grid;
  gap: .9rem;
}

.checklist li {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
}

/* ---------------------------------------------------------- stats page */

.hero.small { padding: 3rem 0 1.5rem; }

.stat-cards { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

.card.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.03em;
  background: linear-gradient(100deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card.stat h3 { margin: .2rem 0 .3rem; }
.card.stat p { font-size: .85rem; opacity: .7; }

.chart { max-width: 44rem; margin: 0 auto; }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 5rem;
  padding-top: .5rem;
}

.bar-col { flex: 1; display: flex; align-items: flex-end; gap: 1px; min-width: 0; }
.bar { flex: 1; border-radius: 2px 2px 0 0; }
.bar.dayof { background: var(--pink); }
.bar.advance { background: var(--sky); }

.chart-legend {
  margin-top: .8rem;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.swatch {
  display: inline-block;
  width: .8rem;
  height: .8rem;
  border-radius: .2rem;
  margin-right: .35rem;
  vertical-align: -1px;
}
.swatch.dayof { background: var(--pink); }
.swatch.advance { background: var(--sky); }

.table-wrap { overflow-x: auto; padding: 1rem; }
.teams { width: 100%; border-collapse: collapse; font-size: .9rem; }
.teams th, .teams td { text-align: left; padding: .5rem .7rem; }
.teams thead th { border-bottom: 2.5px solid var(--ink); font-size: .8rem;
                  text-transform: uppercase; letter-spacing: .04em; }
.teams tbody tr:nth-child(even) { background: #faf4ec; }
.teams .dim { font-size: .75rem; opacity: .5; }

/* ------------------------------------------------------------ confetti */

.confetti {
  position: fixed;
  top: -12vh;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  animation: cf-fall linear forwards;
}

@keyframes cf-fall {
  to { transform: translateY(120vh) rotate(800deg); }
}

@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .btn { transition: none; }
  html { scroll-behavior: auto; }
}
