/* Wren Software site. Radius rule: surfaces 16px, controls 10px, chips 999px. */

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 88px;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
img,
svg {
	max-width: 100%;
}
a {
	color: var(--accent-ink);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
a:hover {
	text-decoration-thickness: 2px;
}
h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--ink);
	font-weight: var(--weight-heading);
	letter-spacing: var(--tracking-heading);
	line-height: 1.12;
	text-wrap: balance;
}
p {
	margin: 0;
	text-wrap: pretty;
}
ul {
	margin: 0;
	padding: 0;
}
code,
kbd {
	font-family: var(--font-mono);
	font-size: 0.88em;
}
code {
	padding: 1px 6px;
	border-radius: 6px;
	background: var(--surface-2);
	color: var(--ink);
}
strong {
	color: var(--ink);
	font-weight: 600;
}
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
::selection {
	background: var(--accent-soft);
	color: var(--ink);
}
[hidden] {
	display: none !important;
}
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.skip {
	position: absolute;
	left: -9999px;
	top: 0;
}
.skip:focus {
	left: 16px;
	top: 16px;
	z-index: 100;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-control);
	background: var(--surface);
	color: var(--ink);
	font-weight: 600;
	box-shadow: var(--shadow);
}
.icon {
	width: 1.2em;
	height: 1.2em;
	flex: none;
	fill: currentColor;
}

/* Brand */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-size: 18px;
	font-weight: 680;
	letter-spacing: -0.02em;
	text-decoration: none;
	white-space: nowrap;
}
.mark {
	display: grid;
	place-items: center;
	flex: none;
	background: var(--accent);
	color: #fff;
}
.mark--site {
	width: 30px;
	height: 30px;
	border-radius: 9px;
}
.mark--site .icon {
	width: 19px;
	height: 19px;
}

/* Nav */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 64px;
}
.nav__menu {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}
.nav__links {
	display: flex;
	gap: 4px;
	list-style: none;
}
.nav__links a {
	display: block;
	padding: 6px 12px;
	border-radius: var(--r-control);
	color: var(--ink-2);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current='page'] {
	color: var(--ink);
	background: var(--surface-2);
}
.nav__toggle {
	display: none;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: var(--control-h);
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--r-control);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active {
	transform: translateY(1px) scale(0.99);
}
.btn .icon {
	width: 18px;
	height: 18px;
}
.btn--primary {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 20px -10px var(--accent);
}
.btn--primary:hover {
	background: var(--accent-ink);
	color: var(--on-accent);
}
.btn--ghost {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink);
}
.btn--ghost:hover {
	border-color: var(--muted);
	color: var(--ink);
}
.btn--sm {
	height: var(--control-h-sm);
	padding: 0 14px;
	font-size: 15px;
}
.btn--sm .icon {
	width: 16px;
	height: 16px;
}

/* Hero */
.hero {
	padding: 88px 0 var(--section);
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 64px;
	align-items: center;
}
.hero h1 {
	font-size: var(--h-hero);
	line-height: 1.04;
	letter-spacing: -0.035em;
}
.hero h1 em,
.page-head h1 em {
	font-style: normal;
	color: var(--accent);
}
.hero__lede {
	margin-top: 22px;
	max-width: 30em;
	color: var(--ink-2);
	font-size: var(--text-lede);
	line-height: 1.55;
}
.hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	padding: 4px 12px 4px 4px;
	border-radius: var(--r-pill);
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-size: 14px;
	font-weight: 600;
}
.eyebrow__mark {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: var(--on-accent);
}
.eyebrow__mark .icon {
	width: 14px;
	height: 14px;
}

/* Stage: product overview card */
.stage {
	display: grid;
	place-items: center;
	padding: 48px 28px;
	border-radius: var(--r-stage);
	background:
		radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%),
		radial-gradient(90% 80% at 10% 100%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
		var(--surface-2);
}
.stage__card {
	width: min(400px, 100%);
	padding: 20px 22px 10px;
	border: 1px solid var(--line);
	border-radius: var(--r-surface);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
}
.stage__label {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.glance {
	list-style: none;
}
.glance__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 14px 0;
}
.glance__row + .glance__row {
	border-top: 1px solid var(--line);
}
.glance__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: var(--r-control);
	background: var(--accent-soft);
	color: var(--accent-ink);
}
.glance__name {
	display: grid;
	min-width: 0;
	line-height: 1.3;
}
.glance__name strong {
	font-size: 16px;
}
.glance__name span {
	overflow: hidden;
	color: var(--muted);
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dot {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 550;
	white-space: nowrap;
}
.dot::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: var(--r-pill);
	background: currentColor;
}
.dot--live {
	color: var(--good);
}
.dot--building::before {
	background: transparent;
	border: 1.5px solid currentColor;
}

/* Sections */
.section {
	padding: var(--section) 0;
}
.section--products {
	padding-top: 0;
}
.section--band {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}
.section__head {
	max-width: 680px;
	margin-bottom: 48px;
}
.section__head h2 {
	font-size: var(--h-section);
}
.section__head p {
	margin-top: 14px;
	color: var(--ink-2);
	font-size: 18px;
}

/* Products */
.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	list-style: none;
}
.products__item {
	display: grid;
}
.products__item--wide {
	grid-column: 1 / -1;
}
.product {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: var(--r-surface);
	background: var(--surface);
	color: inherit;
	text-decoration: none;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.product:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
	box-shadow: var(--shadow);
}
.product--live {
	background: linear-gradient(165deg, var(--accent-soft), var(--surface) 46%);
}
.product__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.product__body {
	display: grid;
	gap: 8px;
}
.product__kind {
	color: var(--muted);
	font-size: 14px;
	font-weight: 550;
}
.product h3 {
	font-size: 26px;
}
.product__tagline {
	color: var(--ink);
	font-size: 18px;
	line-height: 1.45;
}
.product__detail {
	color: var(--ink-2);
	font-size: 16px;
}
.product__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 4px;
	color: var(--accent-ink);
	font-size: 15px;
	font-weight: 600;
}
.product__link .icon {
	transition: transform 0.3s var(--ease);
}
a.product:hover .product__link .icon {
	transform: translate(2px, -2px);
}
.product--building {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	background: var(--surface-2);
	border-style: dashed;
}
.product--building .product__top {
	display: contents;
}
.product--building .tile-icon {
	order: -1;
	background: var(--surface);
	color: var(--muted);
}
.product--building .badge {
	grid-column: 3;
	grid-row: 1;
}
.product--building .product__body {
	grid-column: 2;
	grid-row: 1;
}
.product--building h3 {
	font-size: 22px;
}
.product--building .product__tagline {
	font-size: 16px;
	color: var(--ink-2);
}
.product__note {
	display: flex;
	align-items: center;
	gap: 8px;
	grid-column: 2 / -1;
	color: var(--muted);
	font-size: 14px;
}
.tile-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--accent-soft);
	color: var(--accent-ink);
}
.tile-icon .icon {
	width: 22px;
	height: 22px;
}
.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: var(--r-pill);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.badge::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: var(--r-pill);
	background: currentColor;
}
.badge--live {
	background: color-mix(in srgb, var(--good) 12%, transparent);
	color: var(--good);
}
.badge--building {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-2);
}
.badge--building::before {
	background: transparent;
	border: 1.5px solid currentColor;
}

/* How we run things */
.how {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: 64px;
	align-items: start;
}
.how .section__head {
	margin-bottom: 0;
}
.promises {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 40px;
	list-style: none;
}
.promises li {
	display: grid;
	gap: 14px;
	align-content: start;
}
.promises p {
	color: var(--ink-2);
	font-size: 16px;
}
.promises strong {
	display: block;
	margin-bottom: 4px;
	font-size: 17px;
	letter-spacing: -0.01em;
}

/* CTA band */
.cta {
	padding: var(--section) 0;
}
.cta__box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: center;
	padding: 48px;
	border-radius: var(--r-stage);
	background: var(--ink);
	color: var(--bg);
}
.cta__box h2 {
	color: var(--bg);
	font-size: clamp(28px, 3vw, 38px);
}
.cta__box p {
	max-width: 40em;
	margin-top: 10px;
	color: color-mix(in srgb, var(--bg) 80%, var(--ink));
}
.cta__email {
	color: var(--bg);
	font-weight: 600;
}

/* Page head and prose */
.page-head {
	max-width: 760px;
	padding: 72px 0 40px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 8px;
}
.page-head__meta {
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.page-head h1 {
	font-size: var(--h-page);
	letter-spacing: -0.035em;
	line-height: 1.06;
}
.page-head p:last-child {
	margin-top: 16px;
	max-width: 46em;
	color: var(--ink-2);
	font-size: var(--text-lede);
}
.prose {
	max-width: 72ch;
	padding-bottom: var(--section);
}
.prose h2 {
	margin: 48px 0 12px;
	font-size: 28px;
	scroll-margin-top: 88px;
}
.prose h3 {
	margin: 28px 0 8px;
	font-size: 20px;
	scroll-margin-top: 88px;
}
.prose p,
.prose ul,
.prose ol {
	margin: 0 0 16px;
	color: var(--ink-2);
}
.prose ul,
.prose ol {
	padding-left: 1.25em;
}
.prose li {
	margin-bottom: 6px;
}
.callout {
	margin: 0 0 18px;
	padding: 16px 18px;
	border-radius: var(--r-control);
	background: var(--accent-soft);
	color: var(--ink);
}

/* Not found */
.notfound {
	padding: 120px 0 var(--section);
}
.notfound__inner {
	max-width: 760px;
}
.notfound__code {
	margin-bottom: 16px;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.notfound h1 {
	font-size: var(--h-page);
	letter-spacing: -0.035em;
	line-height: 1.06;
}
.notfound__lede {
	margin-top: 18px;
	max-width: 34em;
	color: var(--ink-2);
	font-size: var(--text-lede);
}

/* Footer */
.footer {
	padding: 56px 0 40px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 15px;
}
.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
}
.footer__about p {
	max-width: 30em;
	margin-top: 14px;
}
.footer__title {
	margin-bottom: 12px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
}
.footer ul {
	display: grid;
	gap: 8px;
	list-style: none;
}
.footer ul a {
	color: var(--muted);
	text-decoration: none;
}
.footer ul a:hover {
	color: var(--ink);
	text-decoration: underline;
}
.footer__legal {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 13px;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
	.reveal.is-pending {
		opacity: 0;
		transform: translateY(18px);
	}
	.reveal.is-in {
		opacity: 1;
		transform: none;
		transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
	}
	.hero__copy > * {
		animation: rise 0.9s var(--ease) backwards;
	}
	.hero__copy > :nth-child(2) {
		animation-delay: 0.06s;
	}
	.hero__copy > :nth-child(3) {
		animation-delay: 0.12s;
	}
	.hero__copy > :nth-child(4) {
		animation-delay: 0.18s;
	}
	.hero__visual {
		animation: rise 1.1s 0.15s var(--ease) backwards;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
@keyframes rise {
	from {
		transform: translateY(14px);
	}
}

/* Dark mode details */
@media (prefers-color-scheme: dark) {
	.btn--primary:hover {
		background: #ff8550;
	}
	.mark {
		color: #fff;
	}
	.cta__box {
		background: var(--surface-2);
		color: var(--ink);
		border: 1px solid var(--line);
	}
	.cta__box h2,
	.cta__email {
		color: var(--ink);
	}
	.cta__box p {
		color: var(--ink-2);
	}
}

/* Responsive */
@media (max-width: 1000px) {
	.hero__grid,
	.how {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero__grid {
		gap: 48px;
	}
	.how {
		gap: 40px;
	}
	.stage {
		padding: 36px 20px;
	}
}
@media (max-width: 760px) {
	.nav__inner {
		flex-wrap: wrap;
		gap: 0 16px;
	}
	.nav__menu {
		flex-basis: 100%;
		justify-content: space-between;
		flex-wrap: wrap;
		margin-left: 0;
		padding: 4px 0 12px;
	}
	.nav__links {
		flex-wrap: wrap;
		margin-left: -12px;
	}
	.nav__cta {
		display: none;
	}
	.nav--js .nav__toggle {
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		margin-left: auto;
		padding: 0;
		border: 1px solid var(--line);
		border-radius: var(--r-control);
		background: var(--surface);
		color: var(--ink);
		cursor: pointer;
	}
	.nav__toggle .icon {
		width: 20px;
		height: 20px;
	}
	.nav__toggle-close,
	.nav.is-open .nav__toggle-open {
		display: none;
	}
	.nav.is-open .nav__toggle-close,
	.nav__toggle-open {
		display: contents;
	}
	.nav--js .nav__menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 8px var(--gutter) 20px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}
	.nav--js.is-open .nav__menu {
		display: grid;
		gap: 12px;
	}
	.nav--js .nav__links {
		flex-direction: column;
		margin-left: 0;
	}
	.nav--js .nav__links a {
		padding: 10px 12px;
		font-size: 16px;
	}
	.nav--js .nav__cta {
		display: inline-flex;
		justify-self: start;
	}
	.hero {
		padding: 48px 0 var(--section);
	}
	.hero__ctas .btn {
		flex: 1 1 auto;
	}
	.products {
		grid-template-columns: minmax(0, 1fr);
	}
	.product {
		padding: 24px;
	}
	.product--building {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 16px;
	}
	.product--building .badge {
		grid-column: 2;
		grid-row: 1;
		justify-self: start;
	}
	.product--building .product__body {
		grid-column: 1 / -1;
		grid-row: 2;
	}
	.product__note {
		grid-column: 1 / -1;
	}
	.promises {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
	.promises li {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
	}
	.cta__box {
		grid-template-columns: minmax(0, 1fr);
		padding: 32px 24px;
	}
	.cta__box .btn {
		justify-self: start;
	}
	.page-head {
		padding: 48px 0 28px;
	}
	.notfound {
		padding: 72px 0 var(--section);
	}
	.footer__grid {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.footer__about {
		grid-column: 1 / -1;
	}
}
