/* Sail · Clean room: white canvas, hairlines, soft shadows. Color comes from teammates' cursors. */
:root {
  --bg: #FFFFFF;
  --ink: #121212;
  --mute: #5E5E66;
  --line: #E6E6EB;
  --dot: #E6E6EC;
  --brand: #1E4C8A;
  --sel: #2D6BFF;
  --coral: #F24E1E;
  --violet: #7B61FF;
  --green: #0FA958;
  --code: #151517;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* Page canvas: dot grid, plus a brighter grid revealed around the cursor */
.page { position: relative; overflow: hidden; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 24px 24px; }
.page > .fx { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(#9AA6FF 1.2px, transparent 1.2px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 75%);
  mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 75%); }
.page > *:not(.fx) { position: relative; z-index: 1; }

/* Cursors */
.cur { position: absolute !important; left: 0; top: 0; z-index: 40 !important; pointer-events: none; transition: transform 1.1s cubic-bezier(.45,.05,.25,1); }
.cur svg { display: block; transition: transform .12s; }
.cur.click svg { transform: scale(.8); }
.cur span { position: absolute; left: 14px; top: 16px; font: 600 12px/1 var(--sans); color: #fff; padding: 5px 8px; border-radius: 0 8px 8px 8px; white-space: nowrap; }
.you { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; font: 600 12px/1 var(--sans); color: #fff; background: var(--sel); padding: 5px 8px; border-radius: 0 8px 8px 8px; transition: opacity .15s; }
.you.on { opacity: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 11px 18px; border-radius: 10px; border: 1px solid #E3E3E8; background: #fff; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: box-shadow .15s ease; }
.btn:hover { box-shadow: 0 0 0 3px rgba(123,97,255,.22); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-off, .btn-off:hover { cursor: not-allowed; background: #F1F1F4; border-color: #E3E3E8; color: #8A8A93; box-shadow: none; }
.btn:disabled { cursor: not-allowed; border: 1px dashed #C9C9D1; box-shadow: none; color: #6B6B73; background: transparent; }

/* Nav */
.nav { position: sticky !important; top: 0; z-index: 30 !important; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 64px; }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 20px; letter-spacing: -.03em; text-decoration: none; }
.logo svg { color: var(--brand); }
.nav .links { display: flex; gap: 22px; font-size: 14.5px; color: var(--mute); }
.nav .links a { text-decoration: none; }
.nav .links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; min-height: 38px; padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding-block: 72px 0; display: grid; justify-items: center; text-align: center; }
.hero h1 { font-weight: 600; font-size: clamp(42px, 7vw, 96px); line-height: .98; letter-spacing: -.05em; max-width: 15ch; }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -.08em; right: -.08em; top: .06em; bottom: .04em; border: 2px solid var(--violet); border-radius: 2px; pointer-events: none; }
.hl::before { content: "Ana"; position: absolute; right: -.1em; top: -.12em; transform: translateY(-100%); font: 600 12px/1 var(--sans); letter-spacing: 0; background: var(--violet); color: #fff; padding: 4px 7px; border-radius: 5px 5px 0 5px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--mute); max-width: 56ch; margin-top: 22px; }
.hero .acts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.hero .closed { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-top: 12px; }

/* Sign-up closed dialog */
.modal { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 40px 80px -30px rgba(20,20,40,.45); }
.modal::backdrop { background: rgba(255,255,255,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.modal-mark { color: var(--brand); }
.modal h2 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin-top: 14px; }
.modal p { color: var(--mute); margin-top: 8px; font-size: 15.5px; }
.modal-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; }

/* Editor */
.ed { margin-top: 56px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 40px 80px -40px rgba(20,20,40,.35); }
.bar { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--mute); min-width: 0; }
.bar b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.bar .path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.faces { margin-left: auto; display: flex; flex: none; }
.faces i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; display: grid; place-items: center; font: 700 10px/1 var(--sans); color: #fff; font-style: normal; }
.panes { display: grid; grid-template-columns: 230px minmax(0, 1fr) 260px; }
.layers { border-right: 1px solid var(--line); padding: 10px 8px; font-family: var(--mono); font-size: 11.5px; max-height: 480px; overflow: auto; }
.layers h2 { margin: 2px 6px 8px; font: 600 11px/1 var(--mono); color: var(--mute); letter-spacing: .02em; }
.ly { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: transparent; text-align: left; padding: 5px 6px; border-radius: 6px; color: var(--ink); font: inherit; white-space: nowrap; min-height: 26px; cursor: pointer; }
.ly:hover, .ly.hov { background: rgba(45,107,255,.08); }
.ly[aria-current="true"] { background: rgba(45,107,255,.14); color: #1F4FD1; }
.ly .tw { width: 12px; flex: none; color: var(--mute); text-align: center; }
.ly .ic { width: 14px; flex: none; text-align: center; font-weight: 600; color: var(--mute); }
.ly .ic.k-inst { color: var(--violet); }
.ly .nm { overflow: hidden; text-overflow: ellipsis; }
.ly .ct { margin-left: auto; color: var(--mute); font-size: 10.5px; padding-left: 6px; }
.canvas { position: relative; overflow: hidden; background: #FAFAFB radial-gradient(#E1E1E6 1px, transparent 1px) 0 0 / 16px 16px; display: grid; place-items: center; padding: 72px 28px 44px; min-width: 0; border-right: 1px solid var(--line); }
.selbox, .hovbox { position: absolute; pointer-events: none; z-index: 4; display: none; }
.selbox { border: 1.5px solid var(--sel); }
.hovbox { border: 1px solid var(--sel); opacity: .7; }
.selbox i { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--sel); }
.selbox i:nth-child(1) { top: -4px; left: -4px; } .selbox i:nth-child(2) { top: -4px; right: -4px; } .selbox i:nth-child(3) { bottom: -4px; left: -4px; } .selbox i:nth-child(4) { bottom: -4px; right: -4px; }
.selbox b { position: absolute; left: -1.5px; bottom: calc(100% + 6px); background: var(--sel); color: #fff; font: 500 10.5px/1 var(--mono); padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.pin { position: absolute; right: 5%; top: 14px; display: flex; gap: 8px; align-items: flex-start; max-width: 240px; z-index: 5; }
.pin .av { flex: none; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--coral); color: #fff; display: grid; place-items: center; font: 700 11px/1 var(--sans); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.pin p { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; line-height: 1.35; text-align: left; box-shadow: 0 8px 20px -10px rgba(0,0,0,.25); }
.pin p b { display: block; font-size: 11px; color: var(--mute); font-weight: 600; margin-bottom: 2px; }

/* The ticket card being edited */
.app { width: 100%; max-width: 450px; color: #121212; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 24px -14px rgba(0,0,0,.25); transition: all .25s ease; }
.app [data-node] { cursor: default; transition: background-color .25s ease, border-radius .25s ease, padding .25s ease, color .25s ease, font-size .25s ease, margin .25s ease; }
.app-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.app h3 { font-size: 15px; font-weight: 700; line-height: 1.2; }
.newbtn { border: 0; color: #fff; background: #4F46E5; border-radius: 6px; padding: 8px 12px; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.tbl { font-size: 12.5px; }
.thead, .trow { display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 8px; align-items: center; }
.thead { color: #6B7280; font-size: 11px; padding: 6px 0; }
.trow { border-top: 1px solid #EEF0F3; padding: 8px 0; }
.badge { display: inline-block; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; font-weight: 500; background: #FFF4D6; color: #8A5A00; }
.badge.done { background: #E2F6EA; color: #17703F; }

/* Inspector */
.insp { padding: 12px 14px; display: grid; align-content: start; gap: 14px; font-size: 12.5px; max-height: 480px; overflow: auto; }
.insp .who { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; }
.insp .who .ic { color: var(--violet); }
.insp .file { font-family: var(--mono); font-size: 10.5px; color: var(--mute); margin-top: 2px; word-break: break-all; }
.insp .note { font-size: 11.5px; color: var(--mute); background: rgba(123,97,255,.08); border-radius: 6px; padding: 6px 8px; }
.insp .h { display: block; font-family: var(--mono); font-size: 11px; color: var(--mute); margin-bottom: 6px; }
.sw { display: flex; gap: 6px; flex-wrap: wrap; }
.sw button { width: 26px; height: 26px; border-radius: 7px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); padding: 0; cursor: pointer; }
.sw button.none { background: repeating-linear-gradient(135deg, #fff 0 4px, #E6E6EA 4px 5px); }
.sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--sel); }
.sg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sg button { flex: 1; border: 0; background: #fff; color: var(--mute); padding: 6px 0; font-size: 12px; min-height: 32px; cursor: pointer; }
.sg button + button { border-left: 1px solid var(--line); }
.sg button[aria-pressed="true"] { background: #EEF2FF; color: #1F4FD1; font-weight: 600; }
.insp input[type=range] { width: 100%; accent-color: var(--sel); }
.insp input[type=text] { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: #fff; }
.diff { grid-column: 1 / -1; border-top: 1px solid var(--line); background: var(--code); border-radius: 0 0 15px 15px; font-family: var(--mono); font-size: 12px; line-height: 1.7; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 14px 18px; align-items: end; color: #D2D2D8; }
.diff pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; min-width: 0; max-height: 200px; overflow: auto; }
.diff .f { color: #9A9AA3; } .diff .c { color: #77777F; }
.diff .del { color: #FF8E86; background: rgba(248,81,73,.12); }
.diff .add { color: #7EE2A1; background: rgba(46,160,67,.16); }
.diff .okl { color: #7EE2A1; }
.pr { border: 0; background: #fff; color: #121212; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 13px; white-space: nowrap; cursor: pointer; min-height: 40px; }
.pr[aria-pressed="true"] { background: var(--green); color: #fff; }
.pr:disabled { opacity: .4; cursor: default; }

/* Sections */
section { scroll-margin-top: 72px; }
.sec { padding-block: 120px 0; }
.sec-h { text-align: center; display: grid; justify-items: center; gap: 12px; margin-bottom: 44px; }
.sec-h h2 { font-weight: 600; font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.045em; line-height: 1; }
.sec-h p { color: var(--mute); font-size: 17px; max-width: 54ch; }

/* How it works: kanban */
.kan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lane { background: #FAFAFC; border: 1px solid #EEEEF2; border-radius: 14px; padding: 16px; min-height: 250px; display: flex; flex-direction: column; gap: 10px; }
.lane h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.lane h3 i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lane > p { font-size: 14.5px; color: var(--mute); }
.kcard { margin-top: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.3); }
.kcard b { display: block; font-size: 14px; font-weight: 600; }
.kcard .meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.kcard .meta em { font-style: normal; padding: 1px 7px; border-radius: 99px; background: #F1F1F4; }

/* Features: real editor screenshots */
.features { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.flist { display: grid; gap: 4px; }
.ftab { text-align: left; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; }
.ftab b { font-size: 16px; font-weight: 600; }
.ftab span { color: var(--mute); font-size: 14.5px; display: none; }
.ftab:hover { background: #FAFAFC; }
.ftab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: 0 6px 16px -12px rgba(0,0,0,.3); }
.ftab[aria-selected="true"] span { display: block; }
.fview { border: 1px solid var(--line); border-radius: 14px; background: #F4F4F6; overflow: hidden; aspect-ratio: 1800 / 1161; display: grid; place-items: center; min-width: 0; box-shadow: 0 30px 60px -40px rgba(20,20,40,.35); }
.fview img { width: 100%; height: 100%; object-fit: contain; }
.fview img[hidden] { display: none; }

.tools { margin-top: 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px; padding-block: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-items: center; }
.tools h2 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.tools p { color: var(--mute); margin-top: 6px; }
.tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { font-family: var(--mono); font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }

footer { padding-block: 72px 48px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 14px; color: var(--mute); }
footer .logo { color: var(--ink); margin-right: auto; font-size: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

.notfound { min-height: 70vh; display: grid; align-content: center; gap: 16px; }
.notfound h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; font-weight: 600; }
.notfound p { color: var(--mute); }

@media (max-width: 1040px) {
  .panes { grid-template-columns: minmax(0, 1fr) 250px; }
  .layers { display: none; }
}
@media (max-width: 820px) {
  .features, .tools { grid-template-columns: minmax(0, 1fr); }
  .flist { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .ftab span { display: none !important; }
  .kan { grid-template-columns: minmax(0, 1fr); }
  .lane { min-height: 0; }
}
@media (max-width: 720px) {
  .nav .links { display: none; }
  .hero { padding-top: 48px; }
  .panes { grid-template-columns: minmax(0, 1fr); }
  .canvas { border-right: 0; border-bottom: 1px solid var(--line); padding-top: 96px; }
  .pin { left: 12px; right: auto; }
  .insp { max-height: none; }
  .diff { grid-template-columns: minmax(0, 1fr); }
  .cur { display: none; }
  .sec { padding-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal[open] { animation: none; }
  .cur, .app, .app [data-node] { transition: none !important; }
}
