:root {
  --fur: #7e87a2;
  --ear: #c8cdd9;
  --belly: #f5f1eb;
  --ink: #1e2232;
  --nose: #e39695;
  --blue: #3d6fe0;
  --blue-soft: #e6edfc;
  --paper: #f7f3ed;
  --card: #ffffff;
  --muted: #5d6378;
  --yellow: #fde9a8;
  --pink-soft: #f9dcdb;
  --line: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
  --radius: 14px;
  --hand: "Caveat", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  /* faint dotted-grid notebook paper */
  background-image: radial-gradient(rgba(30, 34, 50, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
code { font-size: .9em; background: var(--blue-soft); padding: 1px 5px; border-radius: 5px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hand { font-family: var(--hand); font-size: 1.35rem; color: var(--blue); line-height: 1.1; }

/* ---------- buttons, pills, cards ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 700 1rem/1 "Outfit", sans-serif;
  padding: 14px 22px;
  color: #fff; background: var(--ink);
  border: var(--line); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--fur);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--fur); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--fur); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 17px 26px; font-size: 1.1rem; width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }

.pill {
  display: inline-block; padding: 5px 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--pink-soft);
}
.pill-blue { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }

.card {
  background: var(--card);
  border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.avatar {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 800; border: 1.5px solid var(--ink);
}
.avatar.a1 { background: var(--yellow); }
.avatar.a2 { background: var(--pink-soft); }
.avatar.a3 { background: var(--blue-soft); }
.avatar.bot { background: var(--belly); padding: 3px; }
.avatar.bot.sm { width: 30px; height: 30px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(24px, calc((100vw - 1120px) / 2 + 24px));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-bottom: var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 1.5rem; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn) { text-decoration: none; }
.nav-links a:not(.btn):hover { text-decoration: underline wavy var(--nose); text-underline-offset: 5px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding-block: 72px 64px;
}
h1 {
  font-weight: 900; font-size: clamp(2.8rem, 6.4vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.045em; margin: 20px 0 18px;
}
.hl { position: relative; white-space: nowrap; }
.hl::after { /* hand-drawn highlighter swipe */
  content: ""; position: absolute; left: -4px; right: -6px; bottom: .06em; height: .32em; z-index: -1;
  background: var(--nose); opacity: .55; border-radius: 40% 60% 50% 45%;
  transform: rotate(-1.5deg);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 0 0 28px; }

.quick-form { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.quick-form input {
  flex: 1 1 220px; min-width: 0;
  font: 500 1rem "Outfit", sans-serif; padding: 14px 16px;
  border: var(--line); border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.fine { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.demo-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.demo-link:hover { color: var(--ink); }

.scribble { display: flex; align-items: flex-start; gap: 6px; margin-top: 26px; color: var(--blue); }
.scribble .arrow { width: 60px; flex-shrink: 0; transform: scaleY(-1) rotate(10deg); }
.scribble span { font-family: var(--hand); font-size: 1.4rem; line-height: 1.05; transform: rotate(-2deg); }

.hero-art { position: relative; padding: 10px 10px 40px; }
.chat { padding: 18px; transform: rotate(1.2deg); }
.chat-head { font-weight: 700; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1.5px dashed var(--ear); display: flex; align-items: center; gap: 8px; }
.chat-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #3fb27f; border: 1.5px solid var(--ink); }
.msg { display: flex; gap: 12px; margin-bottom: 16px; }
.msg:last-child { margin-bottom: 0; }
.msg p { margin: 2px 0 0; font-size: .95rem; }
.tag { font-size: .62rem; background: var(--ear); padding: 1px 5px; border-radius: 4px; vertical-align: 2px; }
.chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chips span { font-size: .8rem; font-weight: 600; padding: 5px 10px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--belly); }

.sticky {
  position: absolute; right: -6px; bottom: -6px; width: 210px;
  padding: 18px 16px 14px;
  font-family: var(--hand); font-size: 1.35rem; line-height: 1.1;
  background: var(--yellow);
  box-shadow: 3px 5px 0 rgba(30, 34, 50, .18);
  transform: rotate(-4deg);
}
.sticky.s-pink { background: var(--pink-soft); }
.sticky.small { position: relative; right: auto; bottom: auto; width: auto; max-width: 280px; margin-top: 22px; transform: rotate(-2deg); }
.tape {
  position: absolute; top: -11px; left: 50%; width: 74px; height: 22px; margin-left: -37px;
  background: rgba(200, 205, 217, .75);
  transform: rotate(3deg);
  border-left: 2px dotted rgba(255,255,255,.6); border-right: 2px dotted rgba(255,255,255,.6);
}
.hero-mascot { position: absolute; width: 104px; height: 100px; left: -36px; bottom: -14px; transform: rotate(-8deg); }

/* ---------- section scaffolding ---------- */
section { padding-block: 56px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-title { font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.035em; line-height: 1.1; margin: 14px 0 8px; }
.sub { color: var(--muted); margin: 0; }
.strike { position: relative; color: var(--muted); }
.strike::after {
  content: ""; position: absolute; left: -3%; right: -3%; top: 52%; height: 4px;
  background: var(--nose); border-radius: 4px; transform: rotate(-3deg);
}

/* ---------- pain ---------- */
.pain .section-title { text-align: center; margin-bottom: 36px; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain-card {
  background: var(--belly); border: 2px dashed var(--fur); border-radius: var(--radius);
  padding: 22px; font-size: 1.05rem;
}
.pain-card p { margin: 6px 0 0; }
.pain-card .num { font-family: var(--hand); font-size: 1.8rem; color: var(--nose); font-weight: 700; }
.tilt-r { transform: rotate(1deg); }
.tilt-l { transform: rotate(-1deg); }

/* ---------- features ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding-block: 40px;
}
.feature + .feature { border-top: 2px dashed var(--ear); }
.feature.reverse .feature-copy { order: 2; }
.feature-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  font-weight: 900; border: var(--line); border-radius: 50%; background: var(--ear);
  box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 8px; }
.feature p { color: var(--muted); margin: 0 0 14px; font-size: 1.05rem; }
.feature p b { color: var(--ink); }

.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; font-weight: 500; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; display: grid; place-items: center;
  font-size: .72rem; font-weight: 900; color: #fff; background: var(--blue); border-radius: 50%;
}
.tier-tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--ink); }
.tier-tag.free { background: #fff; }
.tier-tag.std { background: var(--blue-soft); }
.tier-tag.pro { background: var(--pink-soft); }

.feature-art { padding: 22px; }
.feature:nth-of-type(1) .feature-art { transform: rotate(-1deg); }
.feature:nth-of-type(2) .feature-art { transform: rotate(1deg); }
.feature:nth-of-type(3) .feature-art { transform: rotate(-.6deg); }

.search { padding: 12px 14px; border: var(--line); border-radius: 10px; font-weight: 500; margin-bottom: 16px; background: var(--belly); }
.person { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; border: 1.5px solid var(--ink); margin-bottom: 10px; }
.person > div:nth-child(2) { flex: 1; line-height: 1.35; }
.person small { color: var(--muted); }
.person.dim { opacity: .62; border-style: dashed; }
.score { font-weight: 800; color: var(--blue); }

.timeline { margin-bottom: 16px; }
.tl-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1.5px dashed var(--ear); font-weight: 600; }
.tl-row small { margin-left: auto; color: var(--muted); font-weight: 500; text-align: right; }
.tl-row span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); font-size: .75rem; font-weight: 900; flex-shrink: 0; }
.tl-row.done span { background: var(--ear); }
.tl-row.warn { color: #b4423f; }
.tl-row.warn span { background: var(--nose); color: #fff; border-color: #b4423f; }
.nudge { display: flex; gap: 10px; background: var(--blue-soft); border: 1.5px solid var(--blue); border-radius: 12px; padding: 12px; }
.nudge p { margin: 0; font-size: .92rem; color: var(--ink); }

.notes { background: #fffdf7; background-image: repeating-linear-gradient(transparent 0 29px, rgba(61, 111, 224, .14) 29px 30px); }
.notes-head { font-weight: 700; margin-bottom: 12px; }
.notes p { margin: 0 0 12px; color: var(--ink); font-size: .97rem; }
.notes p b { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fur); }
.notes .hand { font-size: 1.25rem; }

/* ---------- integrations ---------- */
.int-card {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 32px 36px; background: var(--fur); color: #fff;
}
.int-card h2 { margin: 0 0 6px; font-size: 1.8rem; font-weight: 900; letter-spacing: -.03em; }
.int-card p { margin: 0; max-width: 460px; color: #eef0f5; }
.int-logos { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.int-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; color: var(--ink); font-weight: 700; border: var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.plus { font-weight: 900; font-size: 1.4rem; }
.sq { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ink); }
.sq.slack { background: conic-gradient(#e01e5a 0 25%, #36c5f0 0 50%, #2eb67d 0 75%, #ecb22e 0); }
.sq.teams { background: #5b5fc7; }
.int-note { position: absolute; right: 30px; bottom: -34px; color: var(--ink); transform: rotate(-2deg); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier { position: relative; padding: 28px 24px; display: flex; flex-direction: column; }
.tier h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.price { font-size: 3rem; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; margin: 8px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier-desc { color: var(--muted); margin: 0 0 18px; }
.tier .checks { flex: 1; }
.tier .btn { width: 100%; }
.tier.featured { background: var(--belly); transform: translateY(-10px); box-shadow: 6px 6px 0 var(--blue); }
.badge {
  position: absolute; top: -15px; right: 18px;
  padding: 4px 12px; font-size: .78rem; font-weight: 800;
  background: var(--nose); border: var(--line); border-radius: 999px;
  transform: rotate(3deg);
}

/* ---------- join ---------- */
.join-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 40px; }
.join-mascot { width: 92px; height: 88px; }
.join-left h2 { font-size: 2.4rem; font-weight: 900; letter-spacing: -.04em; margin: 8px 0 10px; }
.join-left p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.join-form { display: flex; flex-direction: column; gap: 16px; }
.join-form label, .join-form legend { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.join-form input[type=email], .join-form select, .join-form textarea {
  font: 500 1rem "Outfit", sans-serif; padding: 12px 14px;
  border: var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.join-form textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 6px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { flex: 1 1 0; min-width: 84px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: 10px 8px; font-weight: 700; line-height: 1.2;
  border: var(--line); border-radius: 10px; background: #fff;
  transition: background .12s, box-shadow .12s, transform .12s;
}
.seg small { font-weight: 500; color: var(--muted); }
.seg input:checked + span { background: var(--ear); box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-msg.err { color: #b4423f; }

.join-card.done .join-form { display: none; }
.thanks { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.thanks h3 { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; margin: 0; }
.thanks p { margin: 0; color: var(--muted); }

/* ---------- faq ---------- */
.faq { max-width: 760px; }
.faq .section-title { margin-bottom: 22px; }
details { border: var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 900; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 20px 16px; color: var(--muted); }

/* ---------- footer, toast ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-block: 36px 48px; border-top: 2px dashed var(--ear); margin-top: 24px; }
.footer .brand { font-size: 1.2rem; }
.footer p { margin: 0; font-size: .9rem; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 100;
  transform: translateX(-50%);
  padding: 14px 20px; max-width: calc(100vw - 32px);
  background: var(--ink); color: #fff; font-weight: 600;
  border-radius: 12px; box-shadow: 4px 4px 0 var(--nose);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero, .feature, .join-card { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-copy { order: 0; }
  .hero { padding-block: 48px; }
  .hero-mascot { left: -6px; }
  .tiers { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .tier.featured { transform: none; }
  .pain-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .nav { padding-inline: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .join-card { padding: 24px 18px; }
  .row { grid-template-columns: 1fr; }
  .int-card { padding: 26px 20px; }
  .int-note { position: static; display: block; transform: none; color: #fff; }
  .sticky { width: 180px; font-size: 1.2rem; }
  .quick-form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .seg span { transition: none; }
}
