/* ---------------------------------------------------------------------------
   Can You Just Not -- site styles
   Palette lifted straight out of the app icon.
   --------------------------------------------------------------------------- */

:root {
	--paper:      #F5F9FD;
	--card:       #FFFFFF;
	--ink:        #1F3A5F;
	--ink-mid:    #355F94;
	--ink-soft:   #6B87A8;
	--rule:       #DCE7F3;

	--yellow:     #FBDC6B;
	--yellow-pale:#FAE99B;
	--yellow-deep:#EFB048;
	--blue-pale:  #AEDBF5;
	--blue:       #8ABAE4;
	--blue-deep:  #467AAA;

	--ok:         #2FA05A;
	--plead:      #E5A72E;
	--point:      #E2762C;
	--facepalm:   #D7453C;

	--radius:     18px;
	--shadow:     0 2px 4px rgba(31,58,95,.04), 0 12px 32px rgba(31,58,95,.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

.wrap {
	max-width: 940px;
	margin: 0 auto;
	padding: 0 24px;
}

a { color: var(--ink-mid); }

/* --- top bar ------------------------------------------------------------- */

.topbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 0;
}

.topbar img { width: 34px; height: 34px; border-radius: 9px; }

.topbar .name {
	font-weight: 700;
	letter-spacing: -.01em;
	white-space: nowrap;
}

.topbar nav {
	margin-left: auto;
	display: flex;
	gap: 22px;
	font-size: 15px;
}

.topbar nav a {
	color: var(--ink-soft);
	text-decoration: none;
}

.topbar nav a:hover { color: var(--ink-mid); }

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

.hero {
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 48px;
	align-items: center;
	padding: 40px 0 64px;
}

.hero-icon {
	width: 100%;
	height: auto;
	border-radius: 56px;
	box-shadow: var(--shadow);
}

h1 {
	font-size: 52px;
	line-height: 1.05;
	letter-spacing: -.03em;
	margin: 0 0 18px;
	font-weight: 800;
}

.lede {
	font-size: 21px;
	line-height: 1.5;
	color: var(--ink-soft);
	margin: 0 0 28px;
	max-width: 30em;
}

.lede strong { color: var(--ink); font-weight: 600; }

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

.badge {
	display: inline-block;
	padding: 11px 20px;
	border-radius: 999px;
	background: var(--ink-mid);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}

.badge.ghost {
	background: transparent;
	color: var(--ink-mid);
	box-shadow: inset 0 0 0 1.5px var(--rule);
}

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

section { padding: 56px 0; border-top: 1px solid var(--rule); }

h2 {
	font-size: 30px;
	letter-spacing: -.02em;
	margin: 0 0 8px;
	font-weight: 750;
}

.sub {
	color: var(--ink-soft);
	margin: 0 0 32px;
	max-width: 34em;
}

/* --- the decay ladder ---------------------------------------------------- */

.ladder {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.rung {
	background: var(--card);
	border-radius: var(--radius);
	padding: 22px 20px;
	box-shadow: var(--shadow);
	border-top: 4px solid var(--tone, var(--rule));
}

.rung .face { font-size: 40px; line-height: 1; }

.rung .when {
	margin-top: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.rung .what {
	color: var(--ink-soft);
	font-size: 15px;
	margin-top: 4px;
}

.rung.ok       { --tone: var(--ok); }
.rung.plead    { --tone: var(--plead); }
.rung.point    { --tone: var(--point); }
.rung.facepalm { --tone: var(--facepalm); }

/* --- fake app row -------------------------------------------------------- */

.phone {
	background: var(--card);
	border-radius: 26px;
	box-shadow: var(--shadow);
	padding: 10px;
	max-width: 420px;
}

.row {
	display: grid;
	grid-template-columns: 1fr 64px;
	align-items: center;
	gap: 10px;
	padding: 14px 12px;
}

.row + .row { border-top: 1px solid var(--rule); }

.row .title { font-weight: 600; }

.row .meta {
	font-size: 13px;
	color: var(--ink-soft);
	margin-top: 2px;
}

.row .meta.late { color: var(--point); }

.bar {
	height: 4px;
	border-radius: 2px;
	background: var(--rule);
	margin: 8px 0 6px;
	overflow: hidden;
}

.bar span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: var(--ok);
}

.bar.warn span { background: var(--point); }

.row .stat { font-size: 12px; color: var(--ink-soft); }

.row .tap {
	font-size: 34px;
	text-align: center;
	line-height: 1;
	cursor: default;
	user-select: none;
}

/* --- two-column explainer ------------------------------------------------ */

.cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

.points { margin: 0; padding: 0; list-style: none; }

.points li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 18px;
}

.points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 12px;
	height: 12px;
	border-radius: 4px;
	background: var(--yellow);
	box-shadow: inset 0 0 0 2px var(--yellow-deep);
}

.points b { display: block; }

.points span { color: var(--ink-soft); font-size: 16px; }

/* --- prose (privacy, support) -------------------------------------------- */

.prose { max-width: 40em; padding-bottom: 40px; }

.prose h2 { margin-top: 40px; font-size: 22px; }

.prose ul { padding-left: 22px; }

.prose li { margin-bottom: 8px; }

.prose .updated { color: var(--ink-soft); font-size: 15px; }

.prose .address {
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.5;
}

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

footer {
	border-top: 1px solid var(--rule);
	padding: 32px 0 60px;
	color: var(--ink-soft);
	font-size: 15px;
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
}

footer a { color: var(--ink-soft); text-decoration: none; }

footer a:hover { color: var(--ink-mid); }

footer .spacer { margin-left: auto; }

/* --- narrow -------------------------------------------------------------- */

@media (max-width: 760px) {
	h1 { font-size: 38px; }
	.lede { font-size: 18px; }
	.hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
	.hero-icon { width: 140px; border-radius: 32px; order: -1; }
	.ladder { grid-template-columns: repeat(2, 1fr); }
	.cols { grid-template-columns: 1fr; gap: 28px; }
	.topbar nav { gap: 16px; }
}

/* Three nav links plus the wordmark stop fitting somewhere around here; the
   "How it works" link is the one the page can spare, since the section is
   immediately below anyway. */
@media (max-width: 560px) {
	.topbar { gap: 10px; }
	.topbar img { width: 28px; height: 28px; border-radius: 8px; }
	.topbar .name { font-size: 15px; }
	.topbar nav { gap: 14px; font-size: 14px; }
	.topbar nav a { white-space: nowrap; }
	.topbar nav a:first-child { display: none; }
	.ladder { grid-template-columns: 1fr; }
	h1 { font-size: 32px; }
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper:    #101A26;
		--card:     #172534;
		--ink:      #E8F0F8;
		--ink-mid:  #9CC6EC;
		--ink-soft: #90A6BE;
		--rule:     #24384D;
	}

	.badge { background: var(--blue); color: #10202F; }
	.badge.ghost { color: var(--ink-mid); }
}
