/* The roadmap in v4: tokens, navigation, buttons and footer come from home.css. */

.rm-hero { position: relative; overflow: clip; padding: 56px 0 72px; background: radial-gradient(60% 80% at 100% 0%, rgba(201, 174, 146, .28), transparent 60%), var(--linen); }
.rm-hero-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.rm-hero h1 { margin: 22px 0 0; font-size: clamp(46px, 6.4vw, 84px); }
.rm-hero h1 .soft { display: block; }
.rm-hero .lede { max-width: 460px; margin: 22px 0 0; }
.ctas-l { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.rm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.rm-stats div { padding: 18px 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.rm-stats dt { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }
.rm-stats dd { margin: 14px 0 0; font-size: 44px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rm-stats .shipped { background: var(--espresso); box-shadow: none; }
.rm-stats .shipped dt { color: var(--mist); }
.rm-stats .shipped dd { color: var(--cream); }

/* Board */
.rm-board { padding: 8px 0 120px; }
.rd-bar { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; background: linear-gradient(var(--linen) 70%, rgba(228, 220, 209, 0)); }
.rd-tabs { display: inline-flex; gap: 3px; padding: 4px; border-radius: 14px; background: rgba(28, 20, 18, .06); }
.rd-tabs button, .rd-sort button { border: 0; background: none; font: inherit; cursor: pointer; color: var(--clay); }
.rd-tabs button { min-height: 44px; padding: 0 18px; border-radius: 11px; font-size: 15px; font-weight: 500; transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.rd-tabs button:hover { color: var(--ink); }
.rd-tabs button[aria-selected="true"] { background: var(--parch); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 20, 18, .08), 0 6px 14px -8px rgba(42, 21, 18, .3); }
.rd-tabs .c { margin-left: 6px; padding: 2px 7px; border-radius: 99px; background: rgba(28, 20, 18, .07); font: 500 11px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.rd-tabs button[aria-selected="true"] .c { background: var(--oxblood); color: #F6F2EA; }
.rd-sort { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(28, 20, 18, .05); }
.rd-sort button { min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.rd-sort button[aria-pressed="true"] { background: var(--parch); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 20, 18, .08); }

.rd-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1000px) { .rd-list { grid-template-columns: minmax(0, 1fr); } }
.rd-row { display: flex; align-items: flex-start; gap: 20px; padding: 22px 26px 22px 20px; border-radius: 20px; background: var(--parch); box-shadow: inset 0 0 0 1px rgba(28, 20, 18, .05), 0 18px 40px -32px rgba(42, 21, 18, .45); animation: rd-in .6s var(--ease) both; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.rd-row:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(28, 20, 18, .07), 0 26px 50px -30px rgba(42, 21, 18, .5); }
.rd-row:nth-child(2) { animation-delay: .04s; } .rd-row:nth-child(3) { animation-delay: .08s; } .rd-row:nth-child(4) { animation-delay: .12s; } .rd-row:nth-child(n+5) { animation-delay: .16s; }
@keyframes rd-in { from { opacity: 0; transform: translateY(10px); } }
.rd-row.skeleton { height: 104px; background: linear-gradient(90deg, var(--parch) 0%, #E7E0D6 50%, var(--parch) 100%) 0 0 / 200% 100%; animation: rd-shimmer 1.2s linear infinite; box-shadow: none; }
@keyframes rd-shimmer { to { background-position: -200% 0; } }

.rd-main { flex: 1; min-width: 0; padding-top: 2px; }
.rd-tags { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rd-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.rd-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rd-status.planned { color: #2A5C9F; }
.rd-status.building { color: #9A5A12; }
.rd-status.building::before { animation: rd-pulse 1.6s ease-in-out infinite; }
@keyframes rd-pulse { 50% { opacity: .3; } }
.rd-status.shipped { color: #2C7240; }
.rd-cat { padding: 3px 9px; border-radius: 99px; background: rgba(28, 20, 18, .06); color: var(--ink-2, #3B201C); font: 500 11px/1.4 var(--mono); letter-spacing: .04em; }
.rd-cat.widget { background: rgba(122, 43, 43, .1); color: var(--oxblood); }
.rd-cat.bug { background: rgba(154, 90, 18, .12); color: #8A4E0E; }
.rd-version { font: 500 11px/1.4 var(--mono); color: var(--clay); }
.rd-title { margin: 10px 0 0; font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.rd-details { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--clay); }
.rd-by { margin: 10px 0 0; font-size: 13px; color: var(--taupe); }

.rd-vote { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 60px; min-height: 68px; border: 0; border-radius: 14px; background: var(--linen); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(28, 20, 18, .08); cursor: pointer; font: 600 16px var(--sans); font-variant-numeric: tabular-nums; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.rd-vote:hover { background: #DCD3C6; transform: translateY(-1px); }
.rd-vote[aria-pressed="true"] { background: var(--oxblood); color: #F6F2EA; box-shadow: 0 10px 22px -10px rgba(122, 43, 43, .7); }
.rd-vote.pop { animation: rd-pop .45s var(--ease); }
@keyframes rd-pop { 40% { transform: scale(1.12); } }
.rd-done { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; background: rgba(44, 114, 64, .1); color: #2C7240; }
.rd-empty { margin: 32px 0 0; padding: 44px 24px; border-radius: 20px; text-align: center; color: var(--clay); background: rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 1px rgba(28, 20, 18, .06); }

/* Call to action */
.rm-cta { padding: 110px 0; background: radial-gradient(60% 90% at 100% 100%, rgba(201, 174, 146, .18), transparent 60%), var(--espresso); }
.rm-cta-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.rm-cta .h2 { margin-top: 22px; max-width: 640px; }
.rm-cta .lede { max-width: 480px; margin-top: 18px; }

/* Dialog */
.rd-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 24px; background: var(--parch); color: var(--ink); box-shadow: 0 50px 100px -30px rgba(20, 8, 6, .55); }
.rd-dialog::backdrop { background: rgba(42, 21, 18, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rd-dialog[open] { animation: rd-dialog-in .45s var(--ease); }
@keyframes rd-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.rd-dialog form, .rd-thanks { display: flex; flex-direction: column; padding: 28px; }
.rd-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.rd-dialog-head h2 { margin: 14px 0 0; font-size: 30px; font-weight: 400; letter-spacing: -0.035em; }
.rd-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(28, 20, 18, .06); color: var(--ink); cursor: pointer; }
.rd-x:hover { background: rgba(28, 20, 18, .1); }
.rd-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.rd-cats label { cursor: pointer; }
.rd-cats input { position: absolute; opacity: 0; pointer-events: none; }
.rd-cats span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 99px; background: rgba(28, 20, 18, .06); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.rd-cats input:checked + span { background: var(--ink); color: var(--linen); }
.rd-cats input:focus-visible + span { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.rd-label { margin: 14px 0 6px; font-size: 14px; font-weight: 500; }
.rd-label .opt { font-weight: 400; color: var(--taupe); }
.rd-dialog input:not([type="radio"]), .rd-dialog textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--linen); color: var(--ink); font: inherit; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(28, 20, 18, .08); }
.rd-dialog textarea { resize: vertical; line-height: 1.5; }
.rd-dialog input:focus, .rd-dialog textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--oxblood); }
.rd-dialog input::placeholder, .rd-dialog textarea::placeholder { color: var(--taupe); }
.hp { position: absolute; left: -9999px; }
.rd-note { margin: 16px 0 14px; font-size: 13.5px; color: var(--clay); }
.rd-thanks { align-items: center; text-align: center; gap: 6px; }
.rd-thanks h2 { margin: 12px 0 0; font-size: 30px; font-weight: 400; letter-spacing: -0.035em; }
.rd-thanks p { margin: 0 0 18px; color: var(--clay); }
.rd-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(44, 114, 64, .12); color: #2C7240; }

@media (max-width: 900px) {
  .rm-hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .rm-hero { padding: 40px 0 56px; }
  .rm-stats dd { font-size: 34px; }
  .rd-bar { position: static; background: none; }
  .rd-tabs button { padding: 0 12px; font-size: 14px; }
  .rd-row { gap: 14px; padding: 18px 16px; }
  .rd-vote, .rd-done { width: 52px; }
  .rd-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-row, .rd-vote.pop, .rd-dialog[open] { animation: none; }
}

/* Everything shipped, as plain text under the board (filled in on the server). */
.rm-shipped-all { margin-top: 28px; padding: 18px 22px; border-radius: 18px; background: rgba(28, 20, 18, .04); }
.rm-shipped-all summary { cursor: pointer; font: 500 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--clay); }
.rm-shipped-all ul { columns: 2 260px; column-gap: 32px; margin: 14px 0 0; padding: 0; list-style: none; }
.rm-shipped-all li { break-inside: avoid; padding: 6px 0; font-size: 15px; border-bottom: 1px solid var(--line-light); }
.rm-shipped-all li span { font: 400 12px/1 var(--mono); color: var(--taupe); }
