:root {
  --ink: #12110f;
  --muted: #5d594e;
  --quiet: #6e6a5f;
  --purple: #6d3fd3;
  --purple-ink: #4c2b96;
  --lavender: #f0eafa;
  --teal-ink: #176d66;
  --teal-soft: #e5f5f2;
  --paper: #faf9f6;
  --surface: #ffffff;
  --line: #e7e3da;
  --sans: "Space Grotesk", Arial, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lede: 18px;
  --heading-sm: 24px;
  --heading-md: 32px;
  --heading-lg: 44px;
  --heading-xl: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: var(--text-base); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1,h2,h3,p,ul,ol,dl,dd { margin: 0; }
ul,ol { padding: 0; list-style: none; }
a,button { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
::selection { background: var(--lavender); }
[hidden] { display: none !important; }
.skip { position: fixed; top: -80px; left: 20px; z-index: 30; padding: 14px 18px; border-radius: 8px; background: var(--surface); font-size: var(--text-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.nav { position: sticky; top: 0; z-index: 20; width: 100%; height: 86px; padding: 0 max(42px,calc((100vw - 1276px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .25s ease,background .25s ease,box-shadow .25s ease; }
.nav.is-scrolled { height: 72px; background: #faf9f6eb; box-shadow: 0 8px 24px #2921340b; backdrop-filter: blur(12px); }
.brand { min-height: 44px; display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 116px; height: auto; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: var(--text-sm); font-weight: 600; }
.nav-link { position: relative; min-height: 44px; display: inline-flex; align-items: center; }
.nav-link::after { content: ""; position: absolute; right: 0; bottom: 6px; left: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.mobile-sign-in,.menu-toggle,.mobile-menu { display: none; }
.menu-toggle { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.menu-toggle span { width: 16px; height: 1px; background: var(--ink); transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: absolute; top: calc(100% - 2px); right: 16px; width: min(230px,calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 40px #2921341a; }
.mobile-menu a { min-height: 44px; padding: 0 12px; border-radius: 7px; display: flex; align-items: center; font-size: var(--text-sm); font-weight: 600; }
.mobile-menu a:hover { background: var(--lavender); }

.button { min-height: 44px; padding: 12px 22px; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: var(--text-sm); font-weight: 600; line-height: 1.4; transition: transform .2s ease,background .2s ease,box-shadow .2s ease; }
.button span { transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:hover span { transform: translateX(3px); }
.primary { color: #fff; background: var(--purple); box-shadow: 0 3px 6px #4f2f9115; }
.primary:hover { background: #6042c0; box-shadow: 0 6px 16px #4f2f9122; }
.secondary { background: #eeebf1; }
.secondary:hover { background: #e6e1eb; }
.nav-button { padding: 10px 17px; background: #2c2b2f; color: #fff; white-space: nowrap; }

.hero { padding: 70px 24px 0; overflow: hidden; text-align: center; }
.hero-copy { max-width: 1000px; margin: 0 auto; animation: enter .7s ease both; }
h1 { font-size: var(--heading-xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.keep-together { white-space: nowrap; }
.highlight { padding: 0 .03em .08em; background-image: linear-gradient(transparent 78%,#b4a0f4 78%,#b4a0f4 88%,transparent 88%); background-repeat: no-repeat; background-position: 0 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-description { max-width: 640px; margin: 28px auto 0; color: var(--muted); font-size: var(--text-lede); line-height: 1.5; }
.hero-actions { margin-top: 28px; display: flex; justify-content: center; gap: 10px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: var(--text-xs); }

.demo-scene { position: relative; max-width: 890px; margin: 66px auto 0; scroll-margin-top: 88px; }
.board-preview { position: relative; z-index: 2; overflow: hidden; border: 1px solid #ddd9e2; border-radius: 13px; background: var(--surface); box-shadow: 0 8px 34px #2921340b,0 0 0 5px #faf9fc; text-align: left; }
.preview-bar { height: 42px; padding: 0 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: var(--text-xs); }
.preview-bar > span { margin-left: -18px; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d8d3dc; }
.board-content { padding: 32px 34px 0; }
.demo-head { margin-bottom: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.demo-head h2 { max-width: 560px; font-size: var(--heading-sm); font-weight: 800; line-height: 1.25; }
.demo-head > span { color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.task-list { border-top: 1px solid var(--line); }
.task-list li { border-bottom: 1px solid var(--line); }
.task-row { width: 100%; min-height: 76px; padding: 14px 0; border: 0; background: transparent; display: flex; align-items: center; gap: 14px; text-align: left; transition: padding .2s ease,background .2s ease; }
.task-row:hover { padding-right: 10px; padding-left: 10px; background: #faf9fc; }
.task-icon { width: 24px; flex: none; color: var(--quiet); font-size: var(--text-lede); }
.task-icon.purple { color: var(--purple); }
.task-icon.working { color: var(--teal-ink); }
.task-title { min-width: 0; flex: 1; font-size: var(--text-sm); font-weight: 600; line-height: 1.4; }
.task-subtitle { display: block; margin-top: 4px; color: var(--muted); font-size: var(--text-xs); font-weight: 400; }
.owner { width: 98px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: var(--text-xs); }
.avatar { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #e8e1ff; color: #42327c; font-size: var(--text-xs); font-weight: 600; }
.avatar.claude { background: #fee6d6; color: #8e4c28; }
.avatar.none { background: #efede8; color: var(--muted); }
.status { width: auto; min-width: 104px; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: var(--text-xs); font-weight: 600; text-align: center; white-space: nowrap; }
.status.needs-you { background: var(--lavender); color: var(--purple-ink); }
.status.working { background: var(--teal-soft); color: var(--teal-ink); }
.status.queued { border: 1px solid var(--line); background: var(--surface); }
.status.approved { background: var(--teal-soft); color: var(--teal-ink); }
.board-bottom { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: var(--text-xs); }
.board-bottom > span { display: inline-flex; align-items: center; gap: 8px; }
.tiny-face { color: var(--purple); font-size: var(--heading-sm); }
.reset { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--purple); font-size: var(--text-xs); font-weight: 600; }
.example-label { padding-top: 20px; color: var(--muted); font-size: var(--text-xs); text-align: center; }
.doodle { position: absolute; z-index: 1; }
.doodle-left { top: -82px; left: -165px; width: 135px; transform: rotate(-4deg); }
.doodle-right { top: 88px; right: -150px; width: 115px; transform: rotate(6deg); }
.hand-note { position: absolute; z-index: 1; color: var(--muted); font-size: var(--text-sm); font-weight: 600; line-height: 1.3; transform: rotate(-5deg); }
.note-left { top: 112px; left: -164px; }
.note-right { top: 252px; right: -170px; transform: rotate(4deg); }

.steps,.situations,.differentiator,.under-the-hood { max-width: 1080px; padding-right: 42px; padding-left: 42px; }
.steps { margin: 108px auto 0; scroll-margin-top: 88px; }
.steps > h2,.situations h2 { font-size: var(--heading-md); font-weight: 800; line-height: 1.25; text-wrap: balance; }
.step-grid { margin-top: 46px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); }
.step { min-height: 292px; padding: 30px 28px 18px 0; border-bottom: 1px solid var(--line); }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-number { color: var(--purple); font-size: var(--text-xs); font-weight: 600; letter-spacing: 1px; }
.step h3 { margin-top: 28px; font-size: var(--text-lede); font-weight: 600; line-height: 1.4; }
.step p { margin-top: 14px; color: var(--muted); font-size: var(--text-base); line-height: 1.6; }

.situations { margin: 104px auto 0; display: grid; grid-template-columns: .72fr 1.28fr; gap: 88px; scroll-margin-top: 88px; }
.situations-intro p { max-width: 360px; margin-top: 16px; color: var(--muted); font-size: var(--text-base); }
.situations-list { border-top: 1px solid var(--line); }
.situations-list > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.situations-list dt { font-size: var(--text-lede); font-weight: 600; line-height: 1.4; }
.situations-list dd { margin-top: 8px; color: var(--muted); font-size: var(--text-base); line-height: 1.6; }

.differentiator { margin: 104px auto 0; padding-bottom: 48px; scroll-margin-top: 88px; }
.differentiator h2 { max-width: 790px; font-size: var(--heading-lg); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.differentiator-copy { max-width: 720px; margin: 0 auto; }
.differentiator-copy p { max-width: 680px; margin-top: 26px; color: var(--muted); font-size: var(--text-base); line-height: 1.7; }
.founder-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.founder-note span { margin-right: 8px; color: var(--purple); font-size: var(--text-xs); font-weight: 600; }
.founder-note p { display: inline; font-size: inherit; }

.under-the-hood { margin: 0 auto; padding-top: 48px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.under-the-hood-intro { display: block; }
.under-the-hood h2 { font-size: var(--heading-sm); font-weight: 600; line-height: 1.25; }
.terms { margin-top: 32px; display: grid; grid-template-columns: repeat(3,1fr); column-gap: 32px; }
.terms > div { padding: 18px 0; border-top: 1px solid var(--line); }
.terms dt { font-size: var(--text-sm); font-weight: 600; }
.terms dd { margin-top: 6px; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }

.closing { margin: 0 auto; padding: 72px 24px 78px; background: #f7f4fc; text-align: center; }
.closing-face { position: relative; width: 47px; height: 45px; margin: 0 auto 24px; border-radius: 15px; background: #e8e1ff; transform: rotate(-9deg); transition: transform .25s ease; }
.closing-face:hover { transform: rotate(9deg); }
.closing-face span { position: absolute; top: -19px; left: 12px; font-size: var(--heading-lg); letter-spacing: 0; }
.closing-face i { position: absolute; top: 29px; left: 17px; width: 14px; height: 7px; border-bottom: 2px solid var(--ink); border-radius: 50%; }
.closing h2 { font-size: var(--heading-lg); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.closing .button { margin-top: 28px; }
.closing > p { margin-top: 16px; color: var(--muted); font-size: var(--text-sm); }

footer { max-width: 1250px; margin: auto; padding: 28px 35px; display: flex; align-items: center; gap: 24px; }
footer .brand img { width: 90px; }
footer > span { color: var(--muted); font-size: var(--text-xs); }
footer > a:not(.brand) { min-width: 44px; min-height: 44px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 600; }
footer .copyright { margin-left: auto; }

dialog { width: min(580px,calc(100% - 36px)); max-height: calc(100vh - 36px); padding: 36px; overflow-y: auto; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: var(--surface); box-shadow: 0 20px 80px #29213422; }
dialog::backdrop { background: #24202b50; backdrop-filter: blur(4px); }
.close-dialog { position: absolute; top: 10px; right: 13px; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--quiet); font-size: var(--heading-sm); }
.task-owner { padding-right: 48px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
dialog h3 { margin-top: 18px; padding-right: 32px; font-size: var(--heading-sm); font-weight: 800; line-height: 1.25; }
.task-record { margin-top: 24px; border-top: 1px solid var(--line); }
.task-record dt { padding-top: 18px; color: var(--ink); font-size: var(--text-sm); font-weight: 600; }
.task-record dd { padding: 6px 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--text-base); line-height: 1.6; }
.choices { margin-top: 14px; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.choices button { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: var(--text-sm); font-weight: 600; text-align: left; }
.choices button:hover,.choices button.active { border-color: #b7a1ea; background: var(--lavender); color: var(--purple-ink); }
.dialog-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.dialog-note { margin-top: 18px; color: var(--muted); font-size: var(--text-xs); line-height: 1.6; }

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease,transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.js .reveal.is-visible.is-immediate { transition: none; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1200px) {
  .demo-scene { max-width: 820px; }
  .doodle-left { left: -118px; width: 105px; }
  .doodle-right { right: -108px; width: 95px; }
  .hand-note { display: none; }
}

@media (max-width: 900px) {
  .desktop-nav { gap: 18px; }
  .situations { gap: 48px; }
}

@media (max-width: 800px) {
  .terms { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .keep-together { white-space: normal; }
  html { scroll-padding-top: 73px; }
  .nav { height: 73px; padding: 0 16px; gap: 10px; }
  .nav.is-scrolled { height: 64px; }
  .brand img { width: 82px; }
  .desktop-nav { display: none; }
  .mobile-sign-in { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
  .nav-button { min-height: 44px; padding: 9px 12px; font-size: var(--text-xs); }
  .hero { padding: 52px 18px 0; }
  h1 { font-size: var(--heading-lg); line-height: 1.1; }
  .hero-description { margin-top: 24px; font-size: var(--text-base); line-height: 1.6; }
  .hero-actions { margin-top: 24px; }
  .demo-scene { margin-top: 52px; scroll-margin-top: 73px; }
  .doodle { display: none; }
  .board-content { padding: 26px 20px 0; }
  .demo-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .task-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 7px 10px; }
  .task-icon { grid-row: 1 / 3; }
  .task-title { grid-column: 2 / 4; }
  .owner { grid-column: 2; width: auto; }
  .status { min-width: 0; width: auto; }
  .steps,.situations,.differentiator,.under-the-hood { padding-right: 24px; padding-left: 24px; }
  .steps { margin-top: 96px; scroll-margin-top: 73px; }
  .step-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .step { min-height: 0; padding: 26px 0; }
  .step + .step { padding-left: 0; border-left: 0; }
  .step h3 { margin-top: 16px; }
  .situations { margin-top: 96px; grid-template-columns: 1fr; gap: 32px; scroll-margin-top: 73px; }
  .situations-intro p { max-width: 520px; }
  .situations-list > div { padding: 22px 0; }
  .differentiator { margin-top: 96px; padding-bottom: 48px; scroll-margin-top: 73px; }
  .differentiator h2,.closing h2 { font-size: var(--heading-md); letter-spacing: -.03em; }
  .under-the-hood { padding-top: 48px; padding-bottom: 48px; }
  .terms { grid-template-columns: 1fr; margin-top: 24px; }
  .closing { margin-top: 0; padding: 58px 22px 62px; }
  .choices { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav { gap: 6px; }
  .brand img { width: 72px; }
  .nav-actions { gap: 5px; }
  .menu-toggle { width: 44px; height: 44px; }
  .nav-button { padding-right: 9px; padding-left: 9px; gap: 8px; }
  .hero-actions { max-width: 310px; margin-right: auto; margin-left: auto; flex-direction: column; align-items: stretch; }
  .preview-bar > span { margin-left: 0; }
  .board-content { padding: 23px 16px 0; }
  .demo-head h2 { font-size: var(--heading-sm); }
  .task-row { gap: 7px 8px; }
  .task-subtitle { display: none; }
  .board-bottom { padding: 10px 0; align-items: flex-start; line-height: 1.5; }
  .example-label { padding-top: 16px; }
  footer { padding: 24px 22px; gap: 14px; flex-wrap: wrap; }
  footer .copyright { margin-left: auto; }
  dialog { padding: 29px 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
