@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/assets/fonts/onest-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/assets/fonts/onest-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800; src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }

:root {
  --paper: #fbf8f3;
  --sand: #f3ede3;
  --line: #ece5da;
  --line-2: #e2d9cb;
  --ink: #1c1a17;
  --ink-2: #4a453e;
  --muted: #5c574f;
  --stone: #8a847a;
  --accent: #e8681a;
  --accent-ink: #c2530f;
  --accent-soft: #f49a5a;
  --blue: #2f6fde;
  --night: #1c1a17;
  --night-2: #26231f;
  --night-line: #3a352e;
  --night-text: #cfc6b8;
  --sans: 'Onest', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.md { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.h2 { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 720; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(28,26,23,.14); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { color: var(--paper); }
.btn--light { background: #fff; color: var(--ink); border: 1px solid #d9cfbf; }
.btn--paper { background: var(--paper); color: var(--ink); }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(251,248,243,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links .btn { font-size: 15px; padding: 10px 18px; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding-top: 88px; padding-bottom: 40px; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { margin: 0; font-size: clamp(46px, 7.2vw, 96px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 750; max-width: 980px; }
.hash { font-family: var(--mono); font-weight: 500; color: var(--accent); opacity: .55; font-size: .6em; vertical-align: .18em; margin-right: .2em; }
.lede { margin: 0; max-width: 640px; font-size: 21px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero--404 { padding-bottom: 120px; }
.shot { margin: 28px 0 0; width: 100%; max-width: 1120px; }
.shot img, .feature img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(60,40,20,.14); }

/* Board */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.split-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split-copy p { margin: 0; color: var(--ink-2); }
.hint { font-family: var(--mono); font-size: 14px; color: var(--muted) !important; }
.board { flex: 2 1 600px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 14px; background: var(--sand); border: 1px solid #e6ddcf; border-radius: 22px; padding: 16px; overflow-x: auto; }
.lane { display: flex; flex-direction: column; gap: 10px; }
.lane-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px; font-weight: 650; font-size: 15px; }
.lane-head span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.lane-swatch { width: 10px; height: 10px; border-radius: 3px; }
.lane-count { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.lane-bar { height: 3px; border-radius: 3px; opacity: .7; }
.lane[data-lane="0"] .lane-swatch, .lane[data-lane="0"] .lane-bar { background: var(--stone); }
.lane[data-lane="1"] .lane-swatch, .lane[data-lane="1"] .lane-bar { background: var(--blue); }
.lane[data-lane="2"] .lane-swatch, .lane[data-lane="2"] .lane-bar { background: var(--accent); }
.task { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.task-title { font-size: 15px; font-weight: 550; line-height: 1.3; }
.task.is-done .task-title { text-decoration: line-through; color: var(--stone); }
.task-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--muted); background: #f6f1e9; border-radius: 6px; padding: 2px 7px; }
.task button { font: inherit; font-size: 12px; font-weight: 600; color: var(--ink); background: #f6f1e9; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; cursor: pointer; min-height: 28px; }

/* Markdown */
.dark { background: var(--night); color: #f3ede3; }
.dark .md { color: var(--accent-soft); }
.dark .split { padding-top: 104px; padding-bottom: 104px; align-items: flex-start; }
.dark .split-copy p { color: var(--night-text); }
.dashes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; color: #e6ded1; font-size: 16px; }
.dashes li { display: flex; gap: 12px; }
.dashes li::before { content: '-'; font-family: var(--mono); color: var(--accent-soft); }
.editor { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.editor-window { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 18px; overflow: hidden; }
.editor-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--night-line); font-family: var(--mono); font-size: 12px; color: #a89f92; }
.editor-bar i { width: 10px; height: 10px; border-radius: 50%; background: #5a534a; }
.editor-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor pre { margin: 0; padding: 22px 24px; font-family: var(--mono); font-size: 14px; line-height: 1.75; color: #e6ded1; white-space: pre-wrap; }
.editor pre .h { color: var(--accent-soft); }
.editor pre .cb { color: #8fb8f2; }
.editor-note { margin: 0; font-family: var(--mono); font-size: 13px; color: #a89f92; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; padding-top: 104px; padding-bottom: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(28,26,23,.10); }
.card .md { font-size: 13px; }
.card h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card-demo { margin-top: 8px; display: flex; align-items: center; gap: 10px; background: #f6f1e9; border: 1px solid #e6ddcf; border-radius: 12px; padding: 10px 14px; font-size: 15px; color: var(--muted); }
.card-demo .end { margin-left: auto; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; }
.chips span { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; }

/* Pro */
.pro { display: flex; flex-direction: column; gap: 72px; padding-top: 96px; padding-bottom: 96px; }
.pro-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.pro-head p { margin: 0; color: var(--ink-2); }
.feature { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.feature--flip { flex-wrap: wrap-reverse; }
.feature-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-copy h3 { margin: 0; font-size: 32px; letter-spacing: -0.025em; }
.feature-copy p { margin: 0; color: var(--ink-2); }
.feature img { flex: 2 1 560px; min-width: 0; border-radius: 18px; box-shadow: 0 20px 50px rgba(60,40,20,.10); }
.badge { align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 600; color: #fff; background: var(--accent-ink); border-radius: 6px; padding: 3px 9px; }

/* Pricing */
.pricing { background: var(--sand); border-top: 1px solid #e6ddcf; border-bottom: 1px solid #e6ddcf; }
.pricing .wrap { display: flex; flex-direction: column; gap: 44px; padding-top: 104px; padding-bottom: 104px; }
.center { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.center p { margin: 0; color: var(--ink-2); max-width: 560px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; max-width: 900px; width: 100%; margin: 0 auto; }
.plan { background: #fff; border: 1px solid #e6ddcf; border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.plan--pro { border: 2px solid var(--accent); box-shadow: 0 20px 50px rgba(194,83,15,.12); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; }
.plan-head h3 { margin: 0; font-size: 24px; }
.price { font-size: 32px; font-weight: 750; letter-spacing: -0.02em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink-2); }
.checks li::before { content: '[x] '; font-family: var(--mono); color: var(--stone); }
.plan--pro .checks li::before { color: var(--accent-ink); }
.plan .btn { margin-top: auto; }
.plan-note { font-size: 13px; color: var(--muted); text-align: center; }
.oss { margin: 0; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 104px; padding-bottom: 104px; }
.faq-head { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.faq-list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); padding: 22px 0; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 20px; font-weight: 650; min-height: 44px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { margin: 12px 0 0; color: var(--ink-2); max-width: 620px; }
.plus { font-size: 26px; font-weight: 400; color: var(--accent-ink); transition: transform .2s ease; }
details[open] .plus { transform: rotate(45deg); }

/* Closing + footer */
.closing { padding: 0 24px 96px; }
.closing-box { max-width: var(--wrap); margin: 0 auto; background: var(--night); color: var(--paper); border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.closing-box > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.closing-box p { margin: 0; color: var(--night-text); }
.closing-box .hash { color: var(--accent-soft); opacity: 1; }
.footer { border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 32px; padding-bottom: 44px; font-size: 14px; color: var(--muted); }
.footer .wrap > span { display: flex; align-items: center; gap: 8px; }
.footer img { width: 20px; height: 20px; border-radius: 5px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 104px; }
.legal article { display: flex; flex-direction: column; gap: 32px; }
.legal header { border-bottom: 1px solid var(--line-2); padding-bottom: 32px; }
.legal header > p:first-child { margin: 0; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); }
.legal h1 { margin: 10px 0 0; font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -0.045em; font-weight: 750; }
.legal h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -0.02em; }
.legal p, .legal li, .legal dd { color: var(--ink-2); }
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; font-family: var(--mono); font-size: 14px; }
.legal dt { font-weight: 700; }
.legal dd { margin: 4px 0 0; }

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