/* merged.in home page. Same design system as the old landing page and the dashboard:
   paper/ink tokens, merge violet, branch green, C64 Keyboard for headings only. */
/* C64 Keyboard by Levente Szabadkai, CC0: capitals only, one weight. */
@font-face { font-family: "C64 Keyboard"; src: url("/static/fonts/c64-keyboard.woff2") format("woff2"); font-display: swap; }

:root {
	--paper: #F4F6F9; --ink: #15172B; --merge: #7044E0; --branch: #1F8F5F; --slate: #5C6178;
	--line: #D5DAE3; --white: #FFFFFF; --amber: #A15C07; --red: #B42318; --code: #E6E9F0;
	--display: "C64 Keyboard", ui-sans-serif, system-ui, sans-serif;
	--body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
	--gh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-synthesis: none; margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--body); }
a { color: var(--merge); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--merge); outline-offset: 3px; border-radius: 3px; }
code { font: .88em var(--mono); background: var(--code); padding: .1em .35em; border-radius: 4px; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--slate); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; border-radius: 6px; z-index: 9; }
.skip:focus { left: 8px; }
h1, h2, h3, .product-name { font-family: var(--display); font-weight: 400; letter-spacing: .01em; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; flex-wrap: wrap; }
.mark { font: 1.35rem/1 var(--display); color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.mark svg { width: 1.3rem; height: 1.3rem; }
.top nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.top nav a { color: var(--ink); font-weight: 600; font-size: .875rem; text-decoration: none; }
.top nav a:hover { color: var(--merge); }
.top nav .signin { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--white); }

/* hero: CI builds left, Merge notices right */
.hero-title { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.05; margin: 16px 0 40px; max-width: 900px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 64px; }
.hero-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero-col + .hero-col { border-left: 1px solid var(--line); padding-left: 48px; }
.product { display: flex; align-items: center; gap: 12px; margin: 0; }
.product-name { font-size: 1.25rem; }
.hero-h { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; margin: 0; }
.lede { color: var(--slate); margin: 0; }
.claim { margin: 0; font-size: 1.125rem; }
.claim b { color: var(--branch); }
.fine { margin: -8px 0 0; color: var(--slate); font-size: .875rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.cta .alt { font-weight: 600; }
.button { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 12px 16px; border-radius: 8px;
	background: var(--merge); color: var(--white); text-decoration: none; transition: background .3s cubic-bezier(.32,.72,0,1), transform .15s; }
.button:hover { background: #5A33C2; color: var(--white); }
.button:active { transform: translateY(1px); }
.button.gh::before { content: ""; width: 1.1rem; height: 1.1rem; background: currentColor; -webkit-mask: var(--gh) center / contain no-repeat; mask: var(--gh) center / contain no-repeat; }
.button.plain { background: var(--ink); }
.button.plain:hover { background: #2B2E4A; }
.small { font-weight: 600; font-size: .875rem; }

/* pills and chips */
.pill { display: inline-block; font: 600 .75rem/1 var(--body); padding: 4px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.pill.live { background: #DDF1E7; color: var(--branch); }
.pill.building { background: #FDF0DC; color: var(--amber); }
.pill.planned { background: #E4E6EE; color: var(--slate); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: .1em; }
.dot.live { background: var(--branch); } .dot.building { background: #D98A1C; } .dot.planned { background: #9AA0B5; }

/* hero mocks */
.hero-mock { margin-top: auto; }
.graph svg { width: 100%; height: auto; display: block; overflow: visible; }
.graph text { font: 500 13px var(--mono); fill: var(--slate); }
.comment { margin: -8px 0 0 auto; width: min(24rem, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -22px rgba(21,23,43,.45); font-size: .875rem; }
.comment header { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #F8F9FB; border-radius: 10px 10px 0 0; color: var(--slate); }
.comment header b { color: var(--ink); }
.avatar { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--merge); color: var(--white); display: grid; place-items: center; font: .75rem/1 var(--display); }
.comment p { margin: 0; padding: 8px 12px 0; } .comment p:last-child { padding-bottom: 12px; }
.ci-hero { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(21,23,43,.45); }
.ci-lanes { padding: 16px; display: grid; gap: 8px; font-size: .875rem; }
.lane { display: flex; align-items: center; gap: 4px; min-height: 28px; }
.lane-label { width: 72px; flex: none; color: var(--slate); font: .75rem var(--mono); }
.tick { font: .75rem var(--mono); background: var(--code); border-radius: 4px; padding: 4px 8px; }
.bar { height: 24px; border-radius: 4px; display: grid; place-items: center; font: 600 .75rem/1 var(--body); color: var(--white); transform-origin: left; }
.bar.boot { flex: 1; background: #9AA0B5; } .bar.run.g { flex: 7; background: var(--branch); } .bar.run.b { flex: 2; background: var(--merge); }
.bar.off { flex: 1; background: var(--ink); } .bar.gap { flex: 6; background: transparent; border: 1px dashed var(--line); }
.ci-result { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--slate); }
@media (prefers-reduced-motion: no-preference) {
	.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s .2s cubic-bezier(.6,0,.3,1) forwards; }
	.draw2 { animation-duration: .6s; animation-delay: 1.6s; }
	.pop { opacity: 0; transform: scale(.4); transform-origin: center; transform-box: fill-box; animation: pop .35s ease-out forwards; }
	.comment { opacity: 0; transform: translateY(12px); animation: land .5s 2.5s ease-out forwards; }
	.ci-lanes .bar { transform: scaleX(0); animation: grow .7s cubic-bezier(.32,.72,0,1) forwards; }
	.ci-lanes .bar.boot { animation-delay: .2s; } .ci-lanes .bar.run { animation-delay: .8s; } .ci-lanes .bar.off, .ci-lanes .bar.gap { animation-delay: 1.6s; }
	@keyframes draw { to { stroke-dashoffset: 0; } } @keyframes pop { to { opacity: 1; transform: scale(1); } }
	@keyframes land { to { opacity: 1; transform: none; } } @keyframes grow { to { transform: scaleX(1); } }
}

/* sections */
section { padding-block: 64px; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.875rem, 3.4vw, 2.25rem); line-height: 1.1; margin: 0 0 12px; }
.intro { color: var(--slate); max-width: 44rem; margin: 0 0 32px; }

/* status strip */
.status { padding-block: 32px; background: var(--white); }
.strip-row { display: grid; grid-template-columns: 160px repeat(3, 1fr); gap: 24px; align-items: start; padding-block: 16px; }
.strip-row + .strip-row { border-top: 1px solid var(--line); }
.strip-row h3 { font-size: 1rem; margin: 0; }
.cell b { display: block; font-size: .875rem; } .cell span { color: var(--slate); font-size: .875rem; }
.cell a { color: var(--slate); }

/* features */
.jump { position: sticky; top: 0; z-index: 2; display: flex; gap: 24px; padding: 12px 0; margin-bottom: 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.jump a { font-weight: 600; font-size: .875rem; text-decoration: none; }
.group { margin-top: 48px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 12px; }
.group-head h3 { font-size: 1.5rem; margin: 0; } .group-head span { color: var(--slate); font-size: .875rem; }
.group-intro { color: var(--slate); margin: 8px 0 0; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-block: 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.feature h4 { font: 700 1.25rem/1.3 var(--body); margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan { font: 600 .75rem/1 var(--body); color: var(--slate); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.aka { color: var(--slate); font-size: .875rem; margin: 0 0 12px; }
.summary { font-size: 1.125rem; margin: 0 0 16px; }
.uses { margin: 0 0 16px; } .uses dt { font-weight: 700; } .uses dd { margin: 0 0 8px; color: var(--slate); }
.note { border: 1px solid #EBD3B0; background: #FDF6EA; border-radius: 8px; padding: 12px; margin: 0 0 16px; font-size: .875rem; }
.details { margin: 16px 0 0; padding-left: 18px; font-size: .875rem; color: var(--slate); }
.details li + li { margin-top: 4px; }

/* mocks */
.mock { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .875rem; }
.mock-bar { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #F8F9FB; }
.mock-bar span, .ci-hero .mock-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock-bar em { font-style: normal; color: var(--slate); font-size: .75rem; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-bar .live { margin-left: auto; color: var(--branch); font-size: .75rem; }
.mock-body { padding: 12px; display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; } .kv > span:nth-child(odd) { color: var(--slate); }
.kv > span { min-width: 0; overflow-wrap: anywhere; }
.chip { font: 600 .75rem/1 var(--body); padding: 4px 8px; border-radius: 6px; background: #E4E6EE; color: var(--ink); white-space: nowrap; }
.chip.ok { background: #DDF1E7; color: var(--branch); } .chip.warn { background: #FDF0DC; color: var(--amber); }
.chip.bad { background: #FBE4E2; color: var(--red); } .chip.info { background: #ECE5FC; color: var(--merge); }
.chip.m { background: var(--merge); color: var(--white); } .chip.b { background: var(--branch); color: var(--white); }
.tbl { width: 100%; border-collapse: collapse; } .tbl th, .tbl td { text-align: left; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--slate); font-weight: 600; font-size: .75rem; }
.code { margin: 0; background: #15172B; color: #E4E6EE; border-radius: 6px; padding: 12px; font: .75rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.code .k { color: #B49CFF; } .code .s { color: #8FD9B6; } .code .n { color: #F5C26B; } .code .c { color: #8A90A8; }
.mock-foot { margin: 0; color: var(--slate); font-size: .75rem; }
.mail-subj { margin: 0; font-weight: 700; }
.bubble { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #F8F9FB; }
.field { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; } .field label { color: var(--slate); font-size: .75rem; }
.field span { border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; min-width: 0; overflow-wrap: anywhere; }
.meter { height: 8px; border-radius: 4px; background: #E4E6EE; overflow: hidden; } .meter i { display: block; height: 100%; background: #D98A1C; }
.timeline { display: flex; gap: 2px; } .seg { height: 22px; border-radius: 4px; font-size: .75rem; color: var(--white); display: grid; place-items: center; overflow: hidden; white-space: nowrap; }
.seg.boot { background: #9AA0B5; } .seg.job { background: var(--branch); } .seg.off { background: var(--ink); } .seg.idle { background: transparent; color: var(--slate); border: 1px dashed var(--line); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .tiles div { border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.tiles b { display: block; font-size: 1.125rem; } .tiles span { color: var(--slate); font-size: .75rem; }
.spark { width: 100%; height: 40px; } .spark polyline { fill: none; stroke: var(--merge); stroke-width: 2; }
.bars { display: inline-flex; gap: 2px; } .bars i { width: 24px; height: 8px; border-radius: 2px; } .bars .d { background: var(--branch); } .bars .r { background: #E3B341; } .bars .w { background: #F08A3C; }

/* planned and use cases */
ul.planned { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; }
ul.planned li { color: var(--slate); } ul.planned b { color: var(--ink); }
.usecases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.usecases h3 { font-size: 1.125rem; margin: 0 0 8px; } .usecases p { margin: 0 0 8px; color: var(--slate); }
.usecases a { font-weight: 600; font-size: .875rem; }

/* pricing and estimator */
.price-h { font-size: 1.5rem; margin: 32px 0 16px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prices.two { grid-template-columns: repeat(2, 1fr); max-width: 800px; }
.price-cell { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.price-cell h4 { font: 700 1.125rem/1.3 var(--body); margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.price-cell p { margin: 0 0 8px; }
.amount { font: 700 1.25rem/1.3 var(--body); } .amount span { display: block; font: 400 .875rem var(--body); color: var(--slate); }
.estimate { margin: 32px 0 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.estimate h3 { font-size: 1.25rem; margin: 0 0 4px; }
.est-fields { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 16px; }
.est-fields label { display: grid; gap: 4px; font-weight: 600; font-size: .875rem; }
.est-fields input, .est-fields select { font: inherit; font-weight: 400; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); min-width: 140px; }
.unit { display: flex; align-items: center; gap: 8px; font-weight: 400; } .unit input { width: 110px; min-width: 0; }
.est-fields button { font: 600 1rem/1 var(--body); padding: 12px 16px; border: 0; border-radius: 8px; background: var(--ink); color: var(--white); cursor: pointer; }
.est-fields button:hover { background: #2B2E4A; } .est-fields button:active { transform: translateY(1px); }
.est-out { display: block; margin-top: 16px; min-height: 1.6em; }
.est-out .big { font: 700 1.5rem/1.2 var(--body); display: block; }
.est-out .err { color: var(--red); font-weight: 600; }
.skeleton { display: block; height: 52px; border-radius: 8px; background: linear-gradient(90deg, #EEF0F4, #F8F9FB, #EEF0F4); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* closing band and footer */
.last { background: var(--ink); color: var(--paper); border-top: 0; }
.last h2 { color: var(--white); } .last .intro { color: #B9BDD0; }
.last .button.gh { background: var(--white); color: var(--ink); } .last .alt { color: #CFC2FF; }
.last :focus-visible { outline-color: #B49CFF; }
footer { padding-block: 32px 48px; color: var(--slate); font-size: .875rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

@media (max-width: 960px) {
	.hero { grid-template-columns: 1fr; gap: 48px; }
	.hero-col + .hero-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 48px; }
	.feature { grid-template-columns: 1fr; gap: 24px; }
	.strip-row { grid-template-columns: 1fr; gap: 8px; }
	.prices, .prices.two, .usecases, ul.planned { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.top nav { gap: 16px; }
	.field { grid-template-columns: 1fr; }
	.jump { gap: 16px; overflow-x: auto; }
}
