/* The Devloom website (site.mjs). Light and neutral: white and soft grey, slate text, one muted blue accent. */

:root {
	color-scheme: light;
	--navy: #1b3a4b;
	--navy-hover: #274d62;
	--bg: #ffffff;
	--bg-alt: #f6f8fa;
	--card: #ffffff;
	--border: #e2e7ec;
	--text: #1c2733;
	--text-soft: #3d4b5a;
	--muted: #5c6b7a;
	--accent: #2c6e93;
	--accent-soft: #e9f1f6;
	--hover: #f1f4f7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, .updates { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }

/* Header and menus in devin.ai's style: 28px pill controls, small quiet headings, one-line items
   in vertical columns lined up with the logo, and the page blurred behind an open menu. */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.header-row { display: flex; align-items: center; gap: 40px; height: 64px; }
.logo { flex: none; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; }
.menu-top {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 28px;
	padding: 1px 12px 0;
	border-radius: 200px;
	color: var(--text);
	font-size: 13px;
	line-height: 1.4;
}
.menu .menu-top { padding-right: 8px; }
.menu-top.active { background: rgba(28, 39, 51, 0.04); }
.menu-top:hover, .menu:hover .menu-top, .menu:has(:focus-visible) .menu-top { background: rgba(28, 39, 51, 0.06); }
.menu-top svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.menu:hover .menu-top svg, .menu:has(:focus-visible) .menu-top svg { transform: rotate(180deg); }
.menu-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	/* Hidden with opacity, not display: the links must stay focusable, or tabbing from the menu
	   into its panel loses focus in the moment the panel would close. */
	opacity: 0;
	pointer-events: none;
	padding: 8px 0 32px;
	background: var(--bg);
	box-shadow: 0 12px 24px -12px rgba(28, 39, 51, 0.12);
	transition: opacity 0.1s;
}
/* Bridges the gap under the menu, so the panel stays open on the way down to it. */
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
/* :focus-visible, not :focus-within: a menu clicked with the mouse must close when the mouse leaves. */
.menu:hover .menu-panel, .menu:has(:focus-visible) .menu-panel { opacity: 1; pointer-events: auto; }
/* The page behind an open menu blurs and fades. */
main { transition: filter 0.1s, opacity 0.1s; }
.site-header:has(.menu:hover) ~ main, .site-header:has(.menu :focus-visible) ~ main { filter: blur(4px); opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { main, .menu-panel, .menu-top svg { transition: none; } }
.menu-columns { display: flex; gap: 0 16px; }
.menu-group { width: 200px; }
.menu-group h2 { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.menu-group a { display: block; padding: 4px 0; color: var(--text); font-size: 13.5px; line-height: 1.4; }
.menu-group a:hover, .menu-group a:focus-visible { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px 1px; border: 1px solid transparent; border-radius: 999px; color: var(--text); font-size: 13px; white-space: nowrap; }
.pill:hover { background: rgba(28, 39, 51, 0.06); }
.pill-line { border-color: rgba(28, 39, 51, 0.12); }
.pill-solid { background: var(--navy); color: #fff; }
.pill-solid:hover { background: var(--navy-hover); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.btn-large { padding: 13px 24px; font-size: 16px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-block { width: 100%; cursor: pointer; border: 0; font-family: inherit; }
.btn-disabled { background: var(--hover); color: var(--muted); cursor: not-allowed; }

.nav-mobile { display: none; width: 100%; }
.nav-mobile summary { position: absolute; top: 10px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-mobile nav a { display: block; padding: 10px 0; }
.nav-mobile nav strong, .nav-mobile .group { font-weight: 600; }
.nav-mobile .group { display: block; padding: 10px 0 2px; }
.nav-mobile nav .sub { padding: 6px 0 6px 16px; color: var(--muted); font-size: 15px; }

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 9vh, 96px) 0 clamp(40px, 6vh, 64px);
	text-align: center;
	background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 75%);
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 860px; margin: 0 auto 20px; font-size: clamp(38px, 6vw, 68px); line-height: 1.06; letter-spacing: -0.03em; }
.lead { max-width: 700px; margin: 0 auto; color: var(--text-soft); font-size: clamp(17px, 2vw, 20px); }
.lead strong { color: var(--text); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero .shot { margin-top: clamp(40px, 6vh, 64px); box-shadow: 0 24px 60px -24px rgba(28, 39, 51, 0.28); }

.shot { margin: 0; overflow: hidden; background: #1e1e1e; border: 1px solid var(--border); border-radius: 12px; }

/* Stack strip */
.stack { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.stack p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.stack ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.stack li { color: var(--text-soft); font-size: 16px; font-weight: 600; }

/* Sections */
.section { padding: clamp(64px, 10vh, 112px) 0; }
.section-alt { background: var(--bg-alt); }
h2 { max-width: 780px; margin: 0 0 16px; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.02em; }
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.section-lead { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.cards li { padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.cards h3 { font-size: 16px; }
.cards p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.card-icon svg { width: 22px; height: 22px; }

.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: clamp(48px, 8vh, 80px); }
.alt-rows .row:nth-of-type(even) .row-text { order: 2; }
.alt-rows .row:nth-of-type(even) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
#agent .row { margin-top: 0; }
.row-text h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.01em; }
.row-text h2 { font-size: clamp(28px, 3.4vw, 40px); }
.row-text p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 17px; }
.step { display: block; margin-bottom: 12px; color: var(--accent); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ticks { margin-top: 20px; }
.ticks li { position: relative; padding: 6px 0 6px 26px; color: var(--text-soft); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.pair h3 { margin-top: 20px; font-size: 21px; }
.pair p { margin: 0; color: var(--muted); }
.callout { display: flex; gap: 20px; margin-top: 32px; padding: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.callout .card-icon { margin: 0; }
.callout p { margin: 0; color: var(--muted); }

.closing {
	padding: clamp(72px, 12vh, 128px) 0;
	text-align: center;
	background: var(--bg-alt);
	border-top: 1px solid var(--border);
}
.closing h2 { margin: 0 auto 12px; }
.closing p { margin: 0; color: var(--text-soft); font-size: 18px; }

/* Footer */
.site-footer { padding: 48px 0 28px; border-top: 1px solid var(--border); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-row .logo img { height: 32px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.footer-cols h2 { margin: 0 0 10px; color: var(--text); font-size: 14px; letter-spacing: 0; }
.footer-cols a { display: block; padding: 3px 0; color: var(--muted); font-size: 14.5px; }
.footer-cols a:hover { color: var(--text); }
.copyright { margin-top: 32px; color: var(--muted); font-size: 14px; }

/* Inner pages */
.hero-page { padding-bottom: clamp(48px, 7vh, 72px); }
.hero-page h1 { font-size: clamp(34px, 5vw, 56px); }
.hero-page .lead a, main p a, main li a:not(.btn):not(.card-link) { color: var(--accent); }
.faq a { text-decoration: underline; }
.narrow { width: min(820px, 100%); }
.cards-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-link { display: block; height: 100%; margin: -24px; padding: 24px; border-radius: 12px; }
.card-link:hover { background: var(--bg-alt); }
.more { display: block; margin-top: 12px; color: var(--accent); font-size: 14.5px; font-weight: 600; }
.note { margin: 24px 0 0; color: var(--muted); font-size: 14.5px; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal { overflow-x: auto; margin: 0 0 8px; padding: 16px 18px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }
.label { margin: 24px 0 8px; color: var(--muted); font-size: 14.5px; font-weight: 600; }

.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.downloads li { padding: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.downloads h3 { font-size: 21px; }
.downloads p { margin: 0 0 20px; color: var(--muted); }

.faq details { padding: 16px 0; border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.commands, .compare { width: 100%; border-collapse: collapse; }
.commands td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14.5px; vertical-align: top; }
.commands td:first-child { color: var(--text-soft); white-space: nowrap; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; margin: 48px auto 0; text-align: left; }
.plan { display: flex; flex-direction: column; padding: 32px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h2 { margin: 0; font-size: 22px; }
.price { margin: 12px 0 8px; font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.price span { color: var(--muted); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.plan-text { margin: 0 0 24px; color: var(--muted); }

.compare { margin-top: 24px; }
.compare th, .compare td { padding: 13px 8px; border-bottom: 1px solid var(--border); text-align: center; font-size: 15px; }
.compare th:first-child { text-align: left; font-weight: 500; }
.compare thead th { color: var(--muted); font-size: 14px; font-weight: 600; }
.yes { display: inline-block; width: 13px; height: 7px; margin-bottom: 3px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.docs-nav { position: sticky; top: 92px; align-self: start; }
.docs-nav a { display: block; padding: 5px 0; color: var(--muted); font-size: 14.5px; }
.docs-nav a:hover { color: var(--text); }
.docs-body section + section { margin-top: 48px; }
.docs-body h2 { font-size: 26px; }
.docs-body p, .docs-body ol { color: var(--muted); }
.docs-body strong { color: var(--text); }
.docs-body li { margin-bottom: 8px; }
.docs-body ol { padding-left: 20px; list-style: decimal; }

.updates li { padding: 28px 0; border-bottom: 1px solid var(--border); }
.updates li:first-child { padding-top: 0; }
.updates time { color: var(--accent); font-size: 14px; font-weight: 600; }
.updates h2 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -0.01em; }
.updates p { margin: 0; color: var(--muted); }

.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 220px; padding: 32px; background: var(--navy); border-radius: 12px; }
.brand-tile img { max-height: 80px; width: auto; }
.brand-tile a { color: #fff; font-size: 14.5px; text-decoration: underline; }
.after-pair { margin-top: 56px; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatches li { display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.swatches span { font-size: 13.5px; }
.swatch-navy { background: #1b3a4b; color: #fff; }
.swatch-orange { background: #ed8b00; color: #10242f; }
.swatch-steel { background: #6e9dbb; color: #10242f; }
.swatch-ice { background: #c8deec; color: #10242f; }

/* Checkout */
.checkout { min-height: 60vh; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.checkout h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }
.pay-card { padding: 32px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 16px 40px -24px rgba(28, 39, 51, 0.25); }
.pay-card h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.pay-rows { margin: 20px 0; padding: 0; border-top: 1px solid var(--border); }
.pay-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.pay-rows dt { color: var(--muted); }
.pay-rows dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-weight: 500; }
.pay-note { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pay-notice { margin: 0 0 14px; padding: 10px 12px; background: var(--accent-soft); border-radius: 8px; font-size: 14px; }

@media (max-width: 1000px) {
	/* No script to close the menu after a tap, so it opens in the page flow, not over it, and
	   jumping to a section leaves it behind. */
	html { scroll-padding-top: 16px; }
	.site-header { position: static; backdrop-filter: none; }
	.header-row { position: relative; flex-wrap: wrap; gap: 0; height: auto; min-height: 68px; }
	.logo { padding: 17px 0; }
	.nav, .header-actions { display: none; }
	.nav-mobile { display: block; }
	.nav-mobile nav { padding-bottom: 16px; }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.checkout-grid { grid-template-columns: minmax(0, 1fr); }
	.docs-nav { position: static; }
	.row, .alt-rows .row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
	.alt-rows .row:nth-of-type(even) .row-text { order: 0; }
}

@media (max-width: 640px) {
	.cards, .pair, .plans, .downloads { grid-template-columns: minmax(0, 1fr); }
	.swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.commands td:first-child { white-space: normal; }
	.callout { flex-direction: column; }
}
