/* DIGS Solutions — single-page site. Blue + ink/white, light and dark. */

@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('/assets/fonts/outfit-latin.woff2') format('woff2');
}

/* ------------------------------------------------------------------ tokens */

:root {
	--blue: #0052ff; /* sampled from the logo */
	--blue-hover: #0046db;
	--on-blue: #ffffff;

	--bg: #ffffff;
	--bg-alt: #f5f7fa;
	--surface: #ffffff;
	--text: #0a0d12;
	--text-2: #4a5361;
	--text-3: #687180;
	--link: #0047de;
	--line: rgba(10, 13, 18, 0.1);
	--line-strong: rgba(10, 13, 18, 0.18);
	--blue-soft: rgba(0, 82, 255, 0.08);
	--grid: rgba(0, 82, 255, 0.1);
	--glow: rgba(0, 82, 255, 0.18);
	--shadow: 0 1px 2px rgba(10, 13, 18, 0.04), 0 24px 48px -24px rgba(10, 13, 18, 0.18);
	--nav-bg: rgba(255, 255, 255, 0.78);

	/* Shotgun logo colours (from getshotgun.io) */
	--sg-ink: #181e23;
	--sg-s1: #481815;
	--sg-s2: #961807;
	--sg-s3: #cd1a04;
	--sg-s4: #ef2105;
	--sg-s5: #fa2305;

	--show-light: block;
	--show-dark: none;

	--font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
	--radius-lg: 28px;
	--radius-md: 18px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--gutter: clamp(16px, 4vw, 40px);

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--blue-hover: #1f66ff;
		--bg: #06080c;
		--bg-alt: #0b0f15;
		--surface: #0e131a;
		--text: #f3f6fb;
		--text-2: #a9b2c0;
		--text-3: #808a99;
		--link: #6b98ff;
		--line: rgba(255, 255, 255, 0.09);
		--line-strong: rgba(255, 255, 255, 0.17);
		--blue-soft: rgba(0, 82, 255, 0.16);
		--grid: rgba(77, 132, 255, 0.11);
		--glow: rgba(0, 82, 255, 0.38);
		--shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
		--nav-bg: rgba(6, 8, 12, 0.72);
		--sg-ink: #f3f5f7;
		--sg-s1: #ffd2bd;
		--sg-s2: #ff9a6b;
		--sg-s3: #ff5c2b;
		--sg-s4: #ff3510;
		--show-light: none;
		--show-dark: block;
		color-scheme: dark;
	}
}

:root[data-theme='dark'] {
	--blue-hover: #1f66ff;
	--bg: #06080c;
	--bg-alt: #0b0f15;
	--surface: #0e131a;
	--text: #f3f6fb;
	--text-2: #a9b2c0;
	--text-3: #808a99;
	--link: #6b98ff;
	--line: rgba(255, 255, 255, 0.09);
	--line-strong: rgba(255, 255, 255, 0.17);
	--blue-soft: rgba(0, 82, 255, 0.16);
	--grid: rgba(77, 132, 255, 0.11);
	--glow: rgba(0, 82, 255, 0.38);
	--shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
	--nav-bg: rgba(6, 8, 12, 0.72);
	--sg-ink: #f3f5f7;
	--sg-s1: #ffd2bd;
	--sg-s2: #ff9a6b;
	--sg-s3: #ff5c2b;
	--sg-s4: #ff3510;
	--show-light: none;
	--show-dark: block;
	color-scheme: dark;
}

/* ------------------------------------------------------------------- base */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}

img,
svg {
	display: block;
	max-width: 100%;
}

h1,
h2,
h3,
p,
ol,
ul {
	margin: 0;
}

ol,
ul {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
	border-radius: 6px;
}

.for-light {
	display: var(--show-light);
}
.for-dark {
	display: var(--show-dark);
}

.wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left));
	padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--blue);
	color: var(--on-blue);
	font-weight: 600;
}
.skip:focus {
	top: 12px;
}

.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.mono {
	font-family: var(--mono);
	font-size: 0.8em;
	letter-spacing: -0.01em;
}

/* --------------------------------------------------------------- type bits */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--text-2);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.eyebrow::before {
	content: '';
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: var(--blue);
}

h2 {
	margin-top: 18px;
	max-width: 22ch;
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.lede {
	max-width: 52ch;
	color: var(--text-2);
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	line-height: 1.55;
}

/* ---------------------------------------------------------------- buttons */

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s var(--ease);
}
.btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.25s var(--ease);
}
.btn:active {
	transform: translateY(1px);
}

.btn-primary {
	background: var(--blue);
	color: var(--on-blue);
}
.btn-primary:hover {
	background: var(--blue-hover);
}
.btn-primary:hover svg {
	transform: translate(2px, 0);
}
a[href='#shotgun'].btn-primary:hover svg {
	transform: translate(0, 2px);
}
a[target='_blank'].btn-primary:hover svg {
	transform: translate(2px, -2px);
}

.btn-ghost {
	border-color: var(--line-strong);
	color: var(--text);
}
.btn-ghost:hover {
	border-color: var(--text);
}

/* -------------------------------------------------------------------- nav */

.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--nav-bg);
	border-bottom: 1px solid transparent;
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	backdrop-filter: saturate(160%) blur(16px);
	transition: border-color 0.3s ease;
}
.nav.scrolled {
	border-bottom-color: var(--line);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 72px;
}

.brand img {
	width: auto;
	height: 40px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
}
.nav-links a {
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--text-2);
	font-size: 0.9375rem;
	font-weight: 500;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}
.nav-links a:hover {
	color: var(--text);
	background: var(--blue-soft);
}
.nav-links .nav-cta {
	margin-left: 6px;
	background: var(--text);
	color: var(--bg);
}
.nav-links .nav-cta:hover {
	background: var(--blue);
	color: var(--on-blue);
}

.theme-toggle {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-left: 4px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	transition: border-color 0.2s ease;
}
.theme-toggle:hover {
	border-color: var(--text);
}
.theme-toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.theme-toggle .i-moon {
	display: var(--show-light);
}
.theme-toggle .i-sun {
	display: var(--show-dark);
}

/* ------------------------------------------------------------------- hero */

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 9vw, 120px) 0 clamp(64px, 9vw, 128px);
}

.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 56px 56px;
	background-position: center top;
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 0%, transparent 75%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}

.hero h1 {
	margin-top: 22px;
	font-size: clamp(2.75rem, 7.4vw, 6rem);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.04em;
}
.hero h1 .line {
	display: block;
}
.hero h1 .cap {
	color: var(--blue);
}

.hero .bar {
	display: block;
	width: 64px;
	height: 5px;
	margin: 32px 0 24px;
	border-radius: 3px;
	background: var(--blue);
}

.hero .actions {
	margin-top: 36px;
}

.hero-mark {
	position: relative;
	justify-self: center;
	width: min(100%, 380px);
}
.hero-mark img {
	position: relative;
	width: 100%;
	height: auto;
	animation: float 9s ease-in-out infinite;
}
.hero-mark .glow {
	position: absolute;
	inset: 12% 8%;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--glow), transparent);
	filter: blur(30px);
	animation: breathe 9s ease-in-out infinite;
}

@keyframes float {
	50% {
		transform: translateY(-12px);
	}
}
@keyframes breathe {
	50% {
		transform: scale(1.08);
		opacity: 0.8;
	}
}

/* --------------------------------------------------------------- sections */

.section {
	padding: clamp(64px, 9vw, 120px) 0;
}

#what {
	background: var(--bg-alt);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.pillars {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: clamp(36px, 5vw, 56px);
}

.pillar {
	padding: 28px 26px 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	transition:
		border-color 0.25s ease,
		transform 0.35s var(--ease);
}
.pillar:hover {
	border-color: var(--blue);
	transform: translateY(-3px);
}
.pillar .num {
	color: var(--link);
	font-family: var(--mono);
	font-size: 0.8125rem;
	font-weight: 600;
}
.pillar h3 {
	margin-top: 36px;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.pillar p {
	margin-top: 8px;
	color: var(--text-2);
	font-size: 1rem;
	line-height: 1.55;
}

/* ---------------------------------------------------------------- product */

.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	padding: clamp(28px, 5vw, 64px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(120% 80% at 100% 0%, var(--blue-soft), transparent 60%),
		var(--bg-alt);
}

.sg-logo {
	width: auto;
	height: 34px;
	margin-top: 28px;
}
.sg-logo .sg-ink {
	fill: var(--sg-ink);
}
.sg-logo .s0 {
	stop-color: var(--sg-ink);
}
.sg-logo .s1 {
	stop-color: var(--sg-s1);
}
.sg-logo .s2 {
	stop-color: var(--sg-s2);
}
.sg-logo .s3 {
	stop-color: var(--sg-s3);
}
.sg-logo .s4 {
	stop-color: var(--sg-s4);
}
.sg-logo .s5 {
	stop-color: var(--sg-s5);
}

.product h2 {
	margin-top: 24px;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.product-lede {
	margin-top: 16px;
	color: var(--text-2);
	line-height: 1.6;
}

.checks {
	display: grid;
	gap: 10px;
	margin-top: 24px;
}
.checks li {
	position: relative;
	padding-left: 32px;
	line-height: 1.45;
}
.checks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--blue)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
		center / 12px no-repeat;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}
.chips li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--text-2);
	font-size: 0.875rem;
	font-weight: 500;
}
.chips span {
	color: var(--link);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product .actions {
	margin-top: 32px;
}

.note {
	margin-top: 20px;
	color: var(--text-3);
	font-size: 0.9375rem;
}

/* mock app window */

.app {
	overflow: hidden;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: var(--shadow);
	font-size: 0.9375rem;
}

.app-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
}
.dots {
	display: flex;
	gap: 6px;
	flex: 1;
}
.dots i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--line-strong);
}
.app-title {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--text-2);
}
.app-spacer {
	flex: 1;
}

.app-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	background: var(--blue-soft);
	color: var(--text-2);
	font-size: 0.8125rem;
}
.app-strip {
	flex-wrap: wrap;
	row-gap: 2px;
}
.app-strip > span {
	white-space: nowrap;
}
.app-strip b {
	color: var(--text);
	font-weight: 600;
}

.queue li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
}

.thumb {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--blue), #4d84ff);
	color: #fff;
}
.thumb svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.queue li[data-state='held'] .thumb {
	background: var(--line);
	color: var(--text-3);
}

.car {
	display: grid;
	min-width: 0;
	line-height: 1.3;
}
.car strong {
	overflow: hidden;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.car .mono {
	color: var(--text-3);
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
	transition:
		background-color 0.3s ease,
		color 0.3s ease,
		border-color 0.3s ease;
}
.status::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}
[data-state='live'] .status {
	background: var(--blue);
	color: var(--on-blue);
}
[data-state='live'] .status::after {
	content: 'Live';
}
[data-state='posting'] .status {
	border-color: var(--blue);
	color: var(--link);
}
[data-state='posting'] .status::before {
	width: 8px;
	height: 8px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	background: none;
	animation: spin 0.8s linear infinite;
}
[data-state='posting'] .status::after {
	content: 'Posting…';
}
[data-state='waiting'] .status {
	border-color: var(--line-strong);
	color: var(--text-3);
}
[data-state='waiting'] .status::after {
	content: 'Waiting';
}
[data-state='held'] .status {
	border: 1px dashed var(--line-strong);
	color: var(--text-3);
}
[data-state='held'] .status::after {
	content: 'Held';
}

.app-foot {
	padding: 10px 16px;
	color: var(--text-3);
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------------------------------------------------------------- contact */

.contact {
	text-align: center;
}
.contact-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.contact h2 {
	max-width: 18ch;
}
.contact .lede {
	margin-top: 18px;
}
.contact .actions {
	justify-content: center;
	margin-top: 32px;
}
.email {
	color: var(--link);
	font-weight: 500;
	border-bottom: 1px solid currentColor;
}
.email:hover {
	color: var(--text);
}

/* ----------------------------------------------------------------- footer */

.footer {
	padding: 48px 0 calc(40px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
}
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}
.footer-full img {
	width: 460px;
	height: auto;
}
.footer-compact {
	display: none;
}
.footer-compact img {
	width: 180px;
	height: auto;
}
.footer-tag {
	display: block;
	margin-top: 14px;
	color: var(--text-3);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.footer-meta {
	max-width: 46ch;
	color: var(--text-2);
	font-size: 0.875rem;
	text-align: right;
}
.footer-meta .fine {
	margin-top: 8px;
	color: var(--text-3);
	font-size: 0.75rem;
	line-height: 1.5;
}

/* --------------------------------------------------------------- reveals */

.js .reveal {
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 0.7s var(--ease),
		transform 0.7s var(--ease);
	transition-delay: var(--d, 0ms);
}
.js .reveal.in {
	opacity: 1;
	transform: none;
}
/* if site.js never runs, don't leave the page blank */
.js:not(.ready) .reveal {
	animation: reveal-fallback 0.6s 1.5s forwards;
}
@keyframes reveal-fallback {
	to {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 960px) {
	.pillars {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.product {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 820px) {
	.hero-inner {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero-mark {
		display: none;
	}
	.hero-grid {
		-webkit-mask-image: radial-gradient(ellipse 90% 70% at 80% 10%, #000 0%, transparent 70%);
		mask-image: radial-gradient(ellipse 90% 70% at 80% 10%, #000 0%, transparent 70%);
	}
	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.footer-meta {
		text-align: left;
	}
}

@media (max-width: 640px) {
	.nav-inner {
		height: 64px;
	}
	.brand img {
		height: 34px;
	}
	.nav-links a:not(.nav-cta) {
		display: none;
	}
	.pillars {
		grid-template-columns: minmax(0, 1fr);
	}
	.pillars {
		gap: 12px;
	}
	.pillar {
		display: grid;
		grid-template-columns: 36px minmax(0, 1fr);
		align-items: baseline;
		padding: 20px 20px 22px;
	}
	.pillar h3 {
		margin-top: 0;
		font-size: 1.3125rem;
	}
	.pillar p {
		grid-column: 2;
		margin-top: 4px;
	}
	.hero .actions .btn {
		flex: 1 1 auto;
	}
	.product {
		padding: 24px 20px;
		border-radius: 22px;
	}
	.sg-logo {
		height: 28px;
	}
	.app {
		font-size: 0.875rem;
	}
	.queue li {
		gap: 10px;
		padding: 10px 12px;
	}
	.thumb {
		width: 34px;
		height: 34px;
	}
	.app-strip,
	.app-bar,
	.app-foot {
		padding-left: 12px;
		padding-right: 12px;
	}
	.footer-full {
		display: none;
	}
	.footer-compact {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------- 404 */

.notfound-title {
	margin-top: 18px;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
}
