:root {
  --ink: #1b2b24;
  --ink-70: #4a5a52;
  --ink-45: #7b8a80;
  --accent: #0398fa;
  --accent-text: #0074c2;
  --green: #1f4d3a;
  --green-deep: #17402f;
  --cream: #f6f0e2;
  --cream-hi: #fbf7ec;
  --canvas: #efe7d3;
  --hairline: #e4dac3;
  --yellow: #fff2a8;
  --white: #fff;

  --paper-yellow: #fff2a8;
  --paper-pink: #ffd1dc;
  --paper-blue: #cfe8ff;
  --paper-green: #d4f4c8;
  --paper-orange: #ffddb0;
  --paper-purple: #e4d4ff;

  --hand: "Caveat", "Segoe Print", cursive;
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --note-rest: 0 1px 1px rgba(0, 0, 0, 0.14), 0 12px 24px -6px rgba(0, 0, 0, 0.3);
  --note-lift: 0 2px 2px rgba(0, 0, 0, 0.14), 0 20px 36px -8px rgba(0, 0, 0, 0.38);
  --card: 0 1px 2px rgba(60, 40, 10, 0.06), 0 20px 48px -16px rgba(60, 40, 10, 0.2);
  --card-big: 0 2px 4px rgba(60, 40, 10, 0.06), 0 40px 100px -24px rgba(60, 40, 10, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--cream-hi);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px #fff;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font: 500 15px var(--sans);
  text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font: 500 12px/16px var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.h2 {
  font-weight: 400;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.lead { font-size: 20px; line-height: 30px; color: var(--ink-70); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font: 500 15px/20px var(--sans);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn { transform: translate(var(--bx, 0px), var(--by, 0px)); }
.btn:hover { transform: translate(var(--bx, 0px), calc(var(--by, 0px) - 1px)); }
.btn--yellow { background: var(--yellow); color: var(--ink); font-weight: 600; box-shadow: 0 4px 0 #d9be4a; }
.btn--yellow:hover { transform: translate(var(--bx, 0px), calc(var(--by, 0px) + 1px)); box-shadow: 0 3px 0 #d9be4a; }
.btn--outline { color: var(--cream-hi); border: 1.5px solid rgba(251, 247, 236, 0.6); }
.btn--ink { background: var(--green); color: var(--cream-hi); }

/* Nav */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(720px, calc(100% - 32px));
  height: 56px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: var(--cream-hi);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { display: block; width: auto; height: 26px; }
.logo__name { font-weight: 500; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); }
.nav__links { display: flex; gap: 8px; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font: 500 15px var(--sans);
  text-decoration: none;
  color: var(--ink);
}
.nav .btn { min-height: 40px; padding: 0 20px; border-radius: 999px; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: max(100vh, 820px);
  padding: 150px 24px 0;
  overflow: hidden;
  background-color: var(--green);
  background-image:
    linear-gradient(rgba(251, 247, 236, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 247, 236, 0.07) 1px, transparent 1px);
  background-size: 120px 120px;
}
.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 247, 236, 0.45);
  font: 500 12px var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-hi);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.hero h1 {
  max-width: 820px;
  font-weight: 500;
  font-size: 92px;
  line-height: 90px;
  letter-spacing: -0.035em;
  color: var(--cream-hi);
}
.hero h1 em { font-weight: 400; color: var(--yellow); }
.hero__lead { max-width: 580px; font-size: 22px; line-height: 32px; color: rgba(251, 247, 236, 0.88); }
.hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 4px; }

/* Notes */
.note {
  --paper: var(--paper-yellow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
  padding: 16px 18px;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--note-rest);
  font-family: var(--sans);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.note:hover { box-shadow: var(--note-lift); }
.taped::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 64px;
  height: 18px;
  margin-left: -32px;
  background: rgba(255, 250, 225, 0.72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transform: rotate(-3deg);
}
.note__top { display: flex; align-items: center; justify-content: space-between; }
.note__text { font-size: 14px; line-height: 20px; color: #1f2933; }
.note__who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #111; }
.note__who b { font-weight: 600; }
.note__who time { font-size: 11px; color: rgba(0, 0, 0, 0.5); }
.avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff8a7a;
  font: 600 12px var(--sans);
  color: #fff;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 3px;
  font: 600 11px var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}
.badge--spec { background: #3b82f6; }
.badge--dev { background: #8b5cf6; }
.badge--fix { background: #ef4444; }
.badge--review { background: #8ed16b; color: var(--ink); }
.badge--todo { background: #f59e0b; color: var(--ink); }
.paper-yellow { --paper: var(--paper-yellow); }
.paper-pink { --paper: var(--paper-pink); }
.paper-blue { --paper: var(--paper-blue); }
.paper-green { --paper: var(--paper-green); }
.paper-orange { --paper: var(--paper-orange); }
.paper-purple { --paper: var(--paper-purple); }
.paper-white { --paper: #fff; }

.status { width: 20px; height: 20px; flex-shrink: 0; }

/* Hero fan */
.fan {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 72px 0 72px;
}
.fan .note { margin: 0 -2px; }
.fan .note:nth-of-type(1) { --r: -6deg; --y: 24px; }
.fan .note:nth-of-type(2) { --r: -2deg; --y: -6px; }
.fan .note:nth-of-type(3) { --r: 1deg; --y: 20px; }
.fan .note:nth-of-type(4) { --r: 3deg; --y: -4px; }
.fan .note:nth-of-type(5) { --r: 6deg; --y: 30px; }
.fan .note { transform: translate(var(--dx, 0px), calc(var(--y) + var(--dy, 0px))) rotate(calc(var(--r) + var(--tilt, 0deg))); }
.fan .note:hover { transform: translate(var(--dx, 0px), calc(var(--y) + var(--dy, 0px) - 4px)) rotate(calc((var(--r) + var(--tilt, 0deg)) * 0.7)); }

/* Sections */
.scallop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: radial-gradient(circle at 12px 12px, var(--edge) 12px, transparent 12.5px) 0 0 / 24px 12px repeat-x;
}
.section { position: relative; padding: 128px 0; }
.problem { --edge: var(--cream); background: var(--cream); text-align: center; }
.problem .wrap > .eyebrow { display: block; margin-bottom: 24px; }
.problem p.lead { max-width: 640px; margin: 24px auto 0; font-size: 22px; line-height: 32px; }
.problem .h2 { font-size: 64px; line-height: 66px; }

.scatter { display: flex; align-items: flex-start; justify-content: center; gap: 24px; margin-top: 72px; }
.sketch {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 276px;
  min-height: 196px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--card);
  text-align: left;
}
.sketch__label { font: 500 11px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); }
.sketch__quote { font: 500 20px/22px var(--hand); color: var(--ink-45); }
.bar { height: 6px; border-radius: 3px; background: #d8cfba; }
.bubble { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #f1ead9; }
.dotrow { display: flex; align-items: center; gap: 10px; }
.dotrow i { width: 22px; height: 22px; border-radius: 50%; background: #d8cfba; }
.scatter .note { width: 276px; transform: rotate(-2deg); box-shadow: var(--note-lift); }

.anatomy .wrap { display: flex; align-items: center; gap: 40px; }
.anatomy__copy { flex: 0 0 440px; display: flex; flex-direction: column; gap: 24px; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  font: 500 14px var(--sans);
  color: var(--ink);
}
.chip svg { width: 18px; height: 18px; }

.anatomy__visual { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 440px;
  border-radius: 24px;
  background-color: var(--canvas);
  background-image: radial-gradient(rgba(27, 43, 36, 0.12) 1px, transparent 1.4px);
  background-size: 20px 20px;
  border: 1px solid var(--hairline);
  box-shadow: var(--card-big);
}
.scene { display: flex; align-items: center; justify-content: center; transition: opacity 0.18s; }
.scene.swap { opacity: 0; }
.stage[data-side="top"] .scene { flex-direction: column; }
.stage[data-side="bottom"] .scene { flex-direction: column-reverse; }
.stage[data-side="left"] .scene { flex-direction: row; }
.stage[data-side="right"] .scene { flex-direction: row-reverse; }
.stage[data-side="none"] .stage__btn, .stage[data-side="none"] .pointer { display: none; }
.stage__btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 140px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  font: 500 15px var(--sans);
  color: #fff;
}
.pointer { position: relative; flex-shrink: 0; }
.stage[data-side="top"] .pointer, .stage[data-side="bottom"] .pointer { width: 14px; height: 86px; }
.stage[data-side="left"] .pointer, .stage[data-side="right"] .pointer { width: 86px; height: 14px; }
.pointer::before { content: ""; position: absolute; background: #3b82f6; transition: transform 0.6s var(--ease); }
.pointer::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3b82f6;
  transform: scale(var(--pop, 1));
  transition: transform 0.3s var(--ease) 0.5s;
}
.stage[data-side="top"] .pointer::before { left: 6px; top: 8px; width: 2px; height: 78px; transform-origin: top; transform: scaleY(var(--draw, 1)); }
.stage[data-side="top"] .pointer::after { left: 0; top: 0; }
.stage[data-side="bottom"] .pointer::before { left: 6px; top: 0; width: 2px; height: 78px; transform-origin: bottom; transform: scaleY(var(--draw, 1)); }
.stage[data-side="bottom"] .pointer::after { left: 0; bottom: 0; }
.stage[data-side="left"] .pointer::before { left: 8px; top: 6px; width: 78px; height: 2px; transform-origin: left; transform: scaleX(var(--draw, 1)); }
.stage[data-side="left"] .pointer::after { left: 0; top: 0; }
.stage[data-side="right"] .pointer::before { left: 0; top: 6px; width: 78px; height: 2px; transform-origin: right; transform: scaleX(var(--draw, 1)); }
.stage[data-side="right"] .pointer::after { right: 0; top: 0; }
.note-wrap { position: relative; flex-shrink: 0; width: 360px; }
.stage .note { width: 100%; gap: 14px; padding: 20px; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 18px 32px -8px rgba(0, 0, 0, 0.28); }
.stage .note__text { font-size: 16px; line-height: 24px; }
.stage .avatar { width: 28px; height: 28px; font-size: 13px; }
.stage .note__who { font-size: 13px; }
.stage .note__who time { font-size: 12px; }
.stage .status { width: 22px; height: 22px; }
.replies-link { font-size: 12px; color: rgba(0, 0, 0, 0.6); text-decoration: underline; }
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 19px/20px var(--hand);
  color: var(--ink-70);
  white-space: nowrap;
  transition: opacity 0.25s;
}
.callout b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  font: 600 11px var(--sans);
  color: #fff;
}
.callout::after { content: ""; position: absolute; top: 50%; width: 22px; height: 1px; background: #a39a82; }
.callout--l { right: calc(100% + 30px); }
.callout--l::after { left: calc(100% + 4px); }
.callout--r { left: calc(100% + 30px); }
.callout--r::after { right: calc(100% + 4px); }
.callout--ptr { left: 28px; top: 30px; }
.callout--ptr::after { display: none; }
.stage[data-side="left"] .callout, .stage[data-side="right"] .callout, .stage[data-side="none"] .callout--ptr { opacity: 0; visibility: hidden; }

.seg {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
}
.seg__label { padding: 0 8px 0 12px; font-size: 20px; line-height: 20px; color: var(--ink-45); }
.seg button {
  appearance: none;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 500 14px var(--sans);
  color: var(--ink-70);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.seg button:hover { background: rgba(31, 77, 58, 0.1); }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--cream-hi); }

/* Working together */
.together {
  --edge: var(--green);
  background: var(--green);
  color: var(--cream-hi);
}
.together .h2 { color: var(--cream-hi); }
.together .lead { color: rgba(251, 247, 236, 0.85); }
.together .eyebrow { color: rgba(251, 247, 236, 0.7); }
.together .wrap { display: flex; align-items: center; gap: 72px; }
.together__visual { position: relative; flex: 0 0 560px; padding: 40px; border-radius: 24px; background: #fff; border: 1px solid var(--hairline); box-shadow: var(--card-big); }
.thread { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.reply { display: flex; gap: 10px; }
.reply p { font: 400 13px/18px var(--sans); color: #1f2933; }
.reply b { font: 600 12px var(--sans); color: #111; }
.reply time { font: 400 11px var(--sans); color: rgba(0, 0, 0, 0.5); margin-left: 6px; }
.reply .avatar { width: 22px; height: 22px; font-size: 11px; flex-shrink: 0; }
.together__visual .note { width: 100%; padding: 20px; }
.together__visual .note__text { font-size: 16px; line-height: 24px; }
.caption { margin-top: 12px; font: 500 20px/22px var(--hand); color: var(--ink-45); }
.together__copy { display: flex; flex-direction: column; gap: 24px; }

/* Organized */
.organized { --edge: var(--cream); background: var(--cream); text-align: center; }
.organized .lead { max-width: 640px; margin: 24px auto 0; }
.organized .h2 { margin-top: 24px; }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 64px; text-align: left; }
.cat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--card);
}
.cat p { font: 400 15px/22px var(--sans); color: var(--ink-70); }
.cat .note { width: 100%; padding: 12px 14px; gap: 8px; box-shadow: 0 1px 1px rgba(0, 33, 66, 0.1), 0 6px 14px -4px rgba(0, 33, 66, 0.14); }
.cat .note__text { font-size: 13px; line-height: 18px; }
.desk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  text-align: left;
}
.desk__card { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 16px; background: var(--canvas); border: 1px solid var(--hairline); }
.desk__card h3 { font-weight: 500; font-size: 24px; line-height: 30px; letter-spacing: -0.01em; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 11px var(--sans); color: var(--ink-70); }
.swatch i { width: 48px; height: 48px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 33, 66, 0.1); box-shadow: 0 1px 2px rgba(0, 33, 66, 0.12); }
.tiles { display: flex; flex-wrap: wrap; gap: 14px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 11px var(--sans); color: var(--ink-70); }
.tile i { width: 80px; height: 80px; border-radius: 4px; background-color: var(--tile-paper, var(--paper-yellow)); transition: transform 0.25s var(--ease), outline-color 0.2s, background-color 0.3s; border: 1px solid rgba(0, 33, 66, 0.1); box-shadow: 0 1px 2px rgba(0, 33, 66, 0.12); }
.tex-grain, .tile--grain i { background-image: radial-gradient(rgba(0, 0, 0, 0.18) 0.6px, transparent 0.8px), radial-gradient(rgba(0, 0, 0, 0.12) 0.5px, transparent 0.7px); background-size: 3px 3px, 5px 5px; background-position: 0 0, 1px 2px; }
.tex-lined, .tile--lined i { background-image: linear-gradient(transparent 27px, rgba(0, 0, 0, 0.16) 28px); background-size: 100% 28px; }
.tex-grid, .tile--grid i { background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px), linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px); background-size: 24px 24px; }
.tex-dots, .tile--dots i { background-image: radial-gradient(rgba(0, 0, 0, 0.22) 1.2px, transparent 1.6px); background-size: 20px 20px; background-position: 10px 10px; }
.features { display: flex; flex-direction: column; gap: 10px; }
.features li { font: 400 15px/22px var(--sans); color: var(--ink-70); }
.features b { font-weight: 600; color: var(--ink); }
ul.features { list-style: none; padding: 0; margin: 0; }

/* Handoff */
.handoff { padding: 0 40px 128px; background: var(--cream-hi); }
.panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 64px;
  border-radius: 24px;
  background: var(--green-deep);
  background-image:
    linear-gradient(rgba(251, 247, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 247, 236, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  color: #fff;
  text-align: center;
}
.panel .eyebrow { color: rgba(255, 255, 255, 0.7); }
.panel .h2 { margin-top: 24px; color: #fff; }
.panel .lead { max-width: 560px; margin: 24px auto 0; color: rgba(255, 255, 255, 0.82); }
.convert { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 64px; text-align: left; }
.code {
  width: 400px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 400 14px/24px var(--mono);
  color: #dbe7f3;
  white-space: pre-wrap;
}
.code .c1 { color: var(--yellow); }
.code .c2 { color: rgba(219, 231, 243, 0.6); }
.arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
}
.ticket {
  width: 400px;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.4);
}
.ticket small { font: 500 11px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); }
.ticket h3 { margin: 8px 0 12px; font: 600 18px/24px var(--sans); }
.ticket p { font: 400 14px/20px var(--sans); color: var(--ink-70); }
.ticket .meta { display: flex; align-items: center; gap: 12px; margin-top: 20px; font: 500 12px var(--sans); color: var(--ink-70); }
.panel .caption { margin-top: 20px; color: rgba(251, 247, 236, 0.7); }

/* Good to know */
.know { background: var(--cream-hi); }
.know .wrap > .eyebrow { display: block; margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.fact { padding: 28px; border-radius: 16px; border: 1px solid var(--hairline); background: #fff; }
.fact h3 { font-weight: 500; font-size: 24px; line-height: 30px; letter-spacing: -0.01em; }
.fact p { margin-top: 8px; font: 400 16px/24px var(--sans); color: var(--ink-70); }
.install { margin-top: 56px; padding: 40px; border-radius: 24px; background: var(--canvas); border: 1px solid var(--hairline); }
.install h3 { font-weight: 500; font-size: 32px; line-height: 38px; letter-spacing: -0.015em; }
.install ol { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; }
.install li { display: flex; align-items: flex-start; gap: 14px; font: 400 16px/24px var(--sans); color: var(--ink-70); counter-increment: s; }
.install li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  font: 600 12px var(--sans);
  color: #fff;
}
.install code { padding: 2px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--hairline); font: 400 14px var(--mono); color: var(--ink); }

/* FAQ */
.faq {
  --edge: var(--green);
  background: var(--green);
  color: var(--cream-hi);
}
.faq .h2 { color: var(--cream-hi); }
.faq .eyebrow { color: rgba(251, 247, 236, 0.7); }
.faq .wrap { display: flex; gap: 64px; }
.faq__title { flex: 0 0 320px; position: sticky; top: 120px; align-self: flex-start; }
.faq__list { flex: 1; }
.faq details { border-bottom: 1px solid rgba(251, 247, 236, 0.22); }
.faq details:first-child { border-top: 1px solid rgba(251, 247, 236, 0.22); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  cursor: pointer;
  list-style: none;
  font-size: 22px;
  line-height: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 40px 24px 0; font-size: 18px; line-height: 28px; color: rgba(251, 247, 236, 0.82); }

/* Final CTA */
.final { padding: 128px 40px; }
.final { background: var(--cream-hi); }
.final__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  min-height: 460px;
  margin: 0 auto;
  padding: 96px 40px;
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--green);
  background-image:
    linear-gradient(rgba(251, 247, 236, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 247, 236, 0.07) 1px, transparent 1px);
  background-size: 120px 120px;
  text-align: center;
}
.final__panel > * { position: relative; }
.final h2 { max-width: 700px; font-weight: 500; font-size: 56px; line-height: 58px; letter-spacing: -0.03em; color: var(--cream-hi); }
.final__panel > p { max-width: 460px; color: rgba(251, 247, 236, 0.88); font-size: 20px; line-height: 30px; }
.final .note { position: absolute; width: 200px; padding: 12px 14px; gap: 8px; text-align: left; }
.final .note { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r, 0deg) + var(--tilt, 0deg))); }
.final .n1 { left: 40px; bottom: 36px; --r: -6deg; }
.final .n2 { right: 40px; top: 36px; --r: 5deg; }
.final .n3 { right: 90px; bottom: 28px; --r: -3deg; }

/* Footer */
.footer { --edge: var(--green-deep); position: relative; padding: 72px 40px 56px; background: var(--green-deep); color: var(--cream-hi); }
.footer .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding: 0; }
.footer__line { margin-top: 12px; font: 500 22px/24px var(--hand); color: rgba(251, 247, 236, 0.8); }
.footer nav { display: flex; gap: 8px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 500 15px var(--sans); color: var(--cream-hi); text-decoration: none; }
.footer__legal { flex: 1; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(251, 247, 236, 0.2); font: 400 13px/20px var(--sans); color: rgba(251, 247, 236, 0.7); }

/* Reveal */
.js-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-ready .reveal.in { opacity: 1; transform: none; }
.js-ready .stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease) calc(var(--i, 0) * 70ms),
    transform 0.6s var(--ease) calc(var(--i, 0) * 70ms),
    translate 0.25s var(--ease),
    rotate 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.25s,
    color 0.25s;
}
.js-ready .stagger.in > * { opacity: 1; transform: none; }
.js-ready .fan .note { animation: settle 0.8s var(--ease) both; }
.js-ready .fan .note:nth-of-type(2) { animation-delay: 0.08s; }
.js-ready .fan .note:nth-of-type(3) { animation-delay: 0.16s; }
.js-ready .fan .note:nth-of-type(4) { animation-delay: 0.24s; }
.js-ready .fan .note:nth-of-type(5) { animation-delay: 0.32s; }
@keyframes settle { from { opacity: 0; transform: translateY(calc(var(--y) - 24px)) rotate(calc(var(--r) - 3deg)); } }

/* Interactions */
.progress { position: fixed; left: 0; top: 0; right: 0; z-index: 60; height: 3px; background: var(--yellow); transform-origin: left; transform: scaleX(0); }

.js-ready .nav { animation: nav-in 0.8s var(--ease) both; }
@keyframes nav-in { from { opacity: 0; transform: translate(-50%, -24px); } }
.nav__links a { border-radius: 999px; transition: background 0.25s; }
.nav__links a:hover { background: rgba(31, 77, 58, 0.08); }
.nav__links a[aria-current="true"] { background: rgba(31, 77, 58, 0.14); }

.js-ready .hero__copy > .pill { animation: rise-in 0.8s var(--ease) 0.05s both; }
.js-ready .hero__lead { animation: rise-in 0.8s var(--ease) 0.75s both; }
.js-ready .hero__buttons { animation: rise-in 0.8s var(--ease) 0.9s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 0.04em 0.16em; margin: 0 -0.04em -0.16em; }
.w > span { display: inline-block; transform: translateY(108%); animation: word-up 0.9s var(--ease) forwards; animation-delay: calc(var(--d) * 80ms + 120ms); }
@keyframes word-up { to { transform: none; } }
.js-ready .hero h1 em {
  background: linear-gradient(transparent 74%, rgba(255, 242, 168, 0.34) 74%, rgba(255, 242, 168, 0.34) 93%, transparent 93%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: highlight 1.1s var(--ease) 1.3s forwards;
}
@keyframes highlight { to { background-size: 100% 100%; } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 35%), rgba(251, 247, 236, 0.1), transparent 70%);
}
.hero__copy, .fan { z-index: 1; }

@media (pointer: fine) {
  .fan .note, .final .note { cursor: grab; user-select: none; touch-action: none; }
}
.note.dragging { transition: box-shadow 0.2s; box-shadow: var(--note-lift); cursor: grabbing; z-index: 20; }

.chip { appearance: none; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s, translate 0.25s var(--ease); }
.chip:hover { translate: 0 -2px; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream-hi); }

.status-btn { appearance: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: -12px -12px -12px 0; padding: 0; border: 0; background: none; cursor: pointer; }
.status-btn svg { transition: transform 0.3s var(--ease); }
.status-btn:hover svg { transform: scale(1.15); }
.reply-form { display: flex; gap: 8px; margin-top: 16px; }
.reply-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.75);
  font: 400 14px var(--sans);
  color: #1f2933;
}
.reply-form button { appearance: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--green); color: var(--cream-hi); font: 500 14px var(--sans); cursor: pointer; transition: transform 0.2s var(--ease); }
.reply-form button:hover { transform: translateY(-1px); }
.reply--in { animation: rise-in 0.5s var(--ease) both; }

.cat:hover { translate: 0 -4px; }
.cat:hover .note { rotate: -2deg; }
.desk__card > .note { width: 100%; }
.swatch, .tile { appearance: none; padding: 0; border: 0; background: none; cursor: pointer; }
.swatch i { transition: transform 0.25s var(--ease), outline-color 0.2s; outline: 2px solid transparent; outline-offset: 2px; }
.swatch:hover i, .tile:hover i { transform: scale(1.08); }
.swatch[aria-pressed="true"] i, .tile[aria-pressed="true"] i { outline: 2px solid var(--green); outline-offset: 2px; }

.code-wrap { position: relative; width: 400px; }
.code-wrap .code { width: 100%; }
.copy-btn { appearance: none; position: absolute; right: 12px; top: 12px; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); color: #fff; font: 500 12px var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.22); }
.copy-btn[data-state="done"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.ticket { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.ticket:hover { transform: translateY(-3px) rotate(0.8deg); }
.ticket.pulse { animation: ticket-pulse 0.8s var(--ease); }
.arrow.pulse { animation: arrow-pulse 0.8s var(--ease); }
@keyframes ticket-pulse { 35% { transform: translateY(-8px) rotate(-1.6deg); box-shadow: 0 36px 56px -16px rgba(0, 0, 0, 0.5); } }
@keyframes arrow-pulse { 35% { transform: scale(1.25); background: var(--yellow); } }

.faq summary { transition: color 0.2s; }
.faq summary:hover { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: opacity 0.15s !important; }
  .js-ready .reveal, .js-ready .stagger > * { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  .section { padding: 96px 0; }
  .wrap { padding: 0 32px; }
  .hero h1 { font-size: 72px; line-height: 72px; }
  .h2 { font-size: 44px; line-height: 48px; }
  .problem .h2 { font-size: 48px; line-height: 52px; }
  .scatter { flex-wrap: wrap; }
  .anatomy .wrap, .together .wrap, .faq .wrap { flex-direction: column; align-items: stretch; }
  .anatomy__copy { flex-basis: auto; }
  .together__visual { flex-basis: auto; }
  .faq__title { position: static; flex-basis: auto; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .desk, .facts { grid-template-columns: 1fr; }
  .convert { flex-direction: column; }
  .code-wrap, .code, .ticket { width: 100%; max-width: 440px; }
  .arrow { transform: rotate(90deg); }
  .fan .note:nth-of-type(5) { display: none; }
  .nav__links { display: none; }
}

/* Mobile */
@media (max-width: 639px) {
  body { font-size: 17px; line-height: 26px; }
  .section { padding: 80px 0; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 46px; line-height: 48px; letter-spacing: -0.03em; }
  .hero__lead { font-size: 19px; line-height: 28px; }
  .h2, .problem .h2, .final h2 { font-size: 34px; line-height: 38px; }
  .fan { padding: 48px 0 56px; overflow: hidden; }
  .fan .note { width: 188px; margin: 0 -22px; padding: 12px; }
  .fan .note:nth-of-type(4), .fan .note:nth-of-type(1) { display: none; }
  .cats { grid-template-columns: 1fr; }
  .stage { height: auto; padding: 36px 12px; }
  .note-wrap { width: 100%; max-width: 360px; }
  .callout { display: none; }
  .together__visual { padding: 20px; }
  .panel { padding: 56px 20px; }
  .handoff, .final { padding-left: 20px; padding-right: 20px; }
  .final__panel { padding: 72px 20px 140px; }
  .final .n2 { display: none; }
  .final .n1 { left: 50%; bottom: 20px; margin-left: -100px; }
  .final .n3 { display: none; }
  .footer .wrap { flex-direction: column; }
  .faq summary { font-size: 19px; line-height: 24px; }
}

.footer .logo__name { color: var(--cream-hi); }

/* Hero handwriting */
.hand { font-family: var(--hand); font-weight: 500; }
.hero-note {
  position: absolute;
  left: 6%;
  top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 30px;
  line-height: 30px;
  color: var(--yellow);
  transform: rotate(-4deg);
}
.hero-note svg { width: 54px; height: 44px; margin-top: 18px; }
@media (max-width: 1023px) { .hero-note { display: none; } }
