/*
 * The look of the site, from the Claude Design file "Vault Website", in the colours of
 * the app's themes.
 */

:root {
	/* Each colour is light-dark(light, dark). The device picks, unless the reader did. */
	color-scheme: light dark;
	--sans: "Instrument Sans", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--wide: 1120px;
}

:root[data-mode="light"] {
	color-scheme: light;
}

:root[data-mode="dark"] {
	color-scheme: dark;
}

/* The four themes of the app, each a light and a dark look. Iron is the default. */
:root,
:root[data-family="iron"] {
	--page: light-dark(oklch(0.905 0.012 245), oklch(0.16 0.004 250));
	--bg: light-dark(oklch(0.975 0.006 245), oklch(0.2 0.004 250));
	--surf: light-dark(oklch(0.96 0.008 245), oklch(0.245 0.004 250));
	--surf2: light-dark(oklch(0.875 0.012 245), oklch(0.295 0.004 250));
	--line: light-dark(oklch(0.74 0.012 245), oklch(0.35 0.004 250));
	--line2: light-dark(oklch(0.84 0.012 245), oklch(0.28 0.004 250));
	--ink: light-dark(oklch(0.26 0.01 250), oklch(0.955 0.004 250));
	--ink2: light-dark(oklch(0.43 0.01 250), oklch(0.72 0.004 250));
	--ink3: light-dark(oklch(0.51 0.01 250), oklch(0.62 0.004 250));
	--ac: light-dark(oklch(0.56 0.197 264), oklch(0.72 0.13 264));
	--ac-ink: light-dark(oklch(0.985 0.01 264), oklch(0.2 0.03 264));
	--ac-soft: light-dark(oklch(0.82 0.075 264), oklch(0.32 0.07 264));
	--ac-text: light-dark(oklch(0.42 0.19 264), oklch(0.78 0.11 264));
	--glow: light-dark(oklch(0.84 0.05 264 / 0.75), oklch(0.28 0.04 264 / 0.5));
	--danger: light-dark(oklch(0.5 0.14 25), oklch(0.68 0.11 25));
	--stripe: repeating-linear-gradient(135deg, light-dark(oklch(0.84 0.012 245), oklch(0.28 0.004 250)) 0 6px, light-dark(oklch(0.91 0.012 245), oklch(0.245 0.004 250)) 6px 12px);
}

:root[data-family="plain"] {
	--page: light-dark(oklch(0.985 0.003 106), oklch(0 0 250));
	--bg: light-dark(oklch(1 0 0), oklch(0.13 0 250));
	--surf: light-dark(oklch(0.995 0.002 106), oklch(0.18 0 250));
	--surf2: light-dark(oklch(0.955 0.003 106), oklch(0.23 0 250));
	--line: light-dark(oklch(0.84 0.003 106), oklch(0.3 0 250));
	--line2: light-dark(oklch(0.915 0.003 106), oklch(0.22 0 250));
	--ink: light-dark(oklch(0.22 0 0), oklch(0.95 0.004 250));
	--ink2: light-dark(oklch(0.45 0.003 106), oklch(0.7 0 250));
	--ink3: light-dark(oklch(0.55 0.003 106), oklch(0.6 0 250));
	--ac: light-dark(oklch(0.264 0 0), oklch(0.82 0.025 250));
	--ac-ink: light-dark(oklch(0.985 0 0), oklch(0.15 0.01 250));
	--ac-soft: light-dark(oklch(0.875 0.003 106), oklch(0.24 0.014 250));
	--ac-text: light-dark(oklch(0.264 0 0), oklch(0.85 0.022 250));
	--glow: light-dark(oklch(0.9 0.003 106 / 0.75), oklch(0.2 0.01 250 / 0.5));
	--danger: light-dark(oklch(0.55 0.14 25), oklch(0.68 0.11 25));
	--stripe: repeating-linear-gradient(135deg, light-dark(oklch(0.915 0.003 106), oklch(0.22 0 250)) 0 6px, light-dark(oklch(0.97 0.003 106), oklch(0.18 0 250)) 6px 12px);
}

:root[data-family="sage"] {
	--page: light-dark(oklch(0.955 0.012 150), oklch(0.145 0.012 165));
	--bg: light-dark(oklch(0.995 0.006 150), oklch(0.185 0.012 165));
	--surf: light-dark(oklch(0.985 0.008 150), oklch(0.235 0.012 165));
	--surf2: light-dark(oklch(0.945 0.012 150), oklch(0.285 0.012 165));
	--line: light-dark(oklch(0.82 0.012 150), oklch(0.34 0.012 165));
	--line2: light-dark(oklch(0.905 0.012 150), oklch(0.27 0.012 165));
	--ink: light-dark(oklch(0.28 0.008 150), oklch(0.955 0.004 165));
	--ink2: light-dark(oklch(0.47 0.008 150), oklch(0.72 0.012 165));
	--ink3: light-dark(oklch(0.56 0.008 150), oklch(0.62 0.012 165));
	--ac: light-dark(oklch(0.48 0.084 152), oklch(0.76 0.075 150));
	--ac-ink: light-dark(oklch(0.985 0.012 150), oklch(0.2 0.03 150));
	--ac-soft: light-dark(oklch(0.865 0.05 150), oklch(0.32 0.06 150));
	--ac-text: light-dark(oklch(0.39 0.075 152), oklch(0.82 0.08 150));
	--glow: light-dark(oklch(0.89 0.04 150 / 0.75), oklch(0.29 0.045 150 / 0.5));
	--danger: light-dark(oklch(0.55 0.14 25), oklch(0.68 0.11 25));
	--stripe: repeating-linear-gradient(135deg, light-dark(oklch(0.905 0.012 150), oklch(0.27 0.012 165)) 0 6px, light-dark(oklch(0.965 0.012 150), oklch(0.235 0.012 165)) 6px 12px);
}

:root[data-family="paper"] {
	--page: light-dark(oklch(0.943 0.021 79), oklch(0.155 0.012 70));
	--bg: light-dark(oklch(0.978 0.016 80), oklch(0.195 0.013 70));
	--surf: light-dark(oklch(0.966 0.018 80), oklch(0.24 0.013 70));
	--surf2: light-dark(oklch(0.91 0.021 79), oklch(0.29 0.013 70));
	--line: light-dark(oklch(0.79 0.021 79), oklch(0.35 0.013 70));
	--line2: light-dark(oklch(0.865 0.021 79), oklch(0.275 0.013 70));
	--ink: light-dark(oklch(0.266 0.016 67), oklch(0.95 0.01 85));
	--ink2: light-dark(oklch(0.44 0.018 70), oklch(0.73 0.016 80));
	--ink3: light-dark(oklch(0.52 0.018 70), oklch(0.63 0.016 80));
	--ac: light-dark(oklch(0.46 0.066 64), oklch(0.78 0.085 60));
	--ac-ink: light-dark(oklch(0.985 0.012 64), oklch(0.2 0.03 55));
	--ac-soft: light-dark(oklch(0.85 0.045 65), oklch(0.3 0.045 55));
	--ac-text: light-dark(oklch(0.4 0.065 62), oklch(0.8 0.075 60));
	--glow: light-dark(oklch(0.87 0.04 65 / 0.65), oklch(0.3 0.045 55 / 0.5));
	--danger: light-dark(oklch(0.5 0.15 25), oklch(0.68 0.11 25));
	--stripe: repeating-linear-gradient(135deg, light-dark(oklch(0.865 0.021 79), oklch(0.275 0.013 70)) 0 6px, light-dark(oklch(0.935 0.021 79), oklch(0.24 0.013 70)) 6px 12px);
}

@font-face {
	font-family: "Instrument Sans";
	src: url("/static/fonts/instrument-sans.woff2") format("woff2-variations");
	font-weight: 400 600;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("/static/fonts/ibm-plex-mono.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

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

body {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
	margin: 0;
	font-weight: 500;
	text-wrap: pretty;
}

h1 {
	font-size: clamp(2rem, 4.4vw, 3.125rem);
	line-height: 1.08;
	letter-spacing: -0.024em;
}

h2 {
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

h3 {
	font-size: 1.125rem;
	line-height: 1.3;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--ac-text);
	text-decoration: none;
}

a:hover {
	color: var(--ac);
}

:focus-visible {
	outline: 2px solid var(--ac);
	outline-offset: 2px;
}

/* Small uppercase labels above a heading. */
.eyebrow {
	font-family: var(--mono);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink2);
}

.eyebrow + h1, .eyebrow + h2 {
	margin-top: 16px;
}

.lead {
	max-width: 52ch;
	margin: 18px 0 0;
	font-size: 1rem;
	line-height: 1.62;
	color: var(--ink2);
}

/* One column width for every page, so the header, the page and the footer line up. */
.wrap, .page {
	max-width: var(--wide);
	margin: 0 auto;
	padding-inline: 24px;
}

.page {
	padding-block: 68px 92px;
}

/* Header: sticky, the mark and the name, the menu, one button. */
.top {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--page);
	border-bottom: 1px solid var(--line2);
}

.top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--ink);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.brand:hover {
	color: var(--ink);
}

.brand svg {
	display: block;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
}

.menu a:not(.button):not(.me) {
	padding: 8px 12px;
	border-radius: 9px;
	font-size: 0.875rem;
	white-space: nowrap;
	color: var(--ink2);
}

.menu a:not(.button):not(.me):hover {
	background: var(--surf);
}

.menu a[aria-current]:not(.button):not(.me) {
	color: var(--ink);
}

.links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
}

/* The phone menu opens with a checkbox, so the header needs no script. The box is
   invisible but still takes focus, and the bars show the focus ring for it. */
.burger-box {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.burger {
	display: none;
	width: 44px;
	height: 44px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border: 1px solid var(--line2);
	border-radius: 11px;
	cursor: pointer;
}

.burger span {
	width: 18px;
	height: 1.5px;
	background: var(--ink);
}

.burger-box:focus-visible ~ .wrap .burger {
	outline: 2px solid var(--ac);
	outline-offset: 2px;
}

/* The app is a button of its own beside the pages, with the arrow that says it leaves
   this site. */
.menu .links a.away {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 8px;
	padding: 8px 12px 8px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surf);
	font-weight: 500;
	color: var(--ink);
}

.menu .links a.away:hover {
	border-color: var(--ac);
	color: var(--ac-text);
}

.menu a.away svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.menu .button {
	margin-left: 8px;
	padding: 10px 17px;
	border-radius: 11px;
	font-size: 0.875rem;
}

/* The account link is the reader's own, so it shows the first letter of their address
   rather than a word, and takes the room of an icon. */
.me {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	margin-left: 8px;
	border-radius: 999px;
	background: var(--ac);
	color: var(--ac-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
}

.me:hover {
	color: var(--ac-ink);
	filter: brightness(1.06);
}

.me[aria-current] {
	outline: 2px solid var(--ac);
	outline-offset: 2px;
}

/* Shown in place of the letter when the address could not be read. */
.me svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Buttons: solid for the one thing to do, outlined for the other. */
.button {
	display: inline-block;
	padding: 15px 24px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--ac);
	color: var(--ac-ink);
	font: inherit;
	font-size: 0.96875rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

.button:hover {
	color: var(--ac-ink);
	filter: brightness(1.06);
}

.button.quiet {
	background: transparent;
	border-color: var(--line);
	color: var(--ink);
	font-weight: 400;
}

.button.quiet:hover {
	background: var(--surf);
	filter: none;
}

/* Footer */
.foot {
	margin-top: 0;
	border-top: 1px solid var(--line2);
	background: var(--bg);
}

.foot .cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 36px;
	padding-block: 56px 30px;
}

.foot .brand {
	font-size: 1rem;
}

.foot .brand svg {
	width: 20px;
	height: 20px;
}

.foot .about {
	max-width: 30ch;
	margin: 14px 0 0;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--ink2);
}

.foot nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.875rem;
}

.foot nav .eyebrow {
	font-size: 0.625rem;
	letter-spacing: 0.14em;
	color: var(--ink3);
}

.foot nav a {
	color: var(--ink2);
}

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

.foot .base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-block: 0 40px;
	font-family: var(--mono);
	font-size: 0.65625rem;
	letter-spacing: 0.08em;
	color: var(--ink3);
}

/* The theme and the mode, at the foot. */
.looks {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0;
}

.looks span {
	display: flex;
	gap: 2px;
}

.looks button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: none;
	color: var(--ink3);
	font: inherit;
	cursor: pointer;
}

.looks button:hover {
	color: var(--ink);
}

.looks button[aria-pressed="true"] {
	border-color: var(--line);
	background: var(--surf);
	color: var(--ink);
}

.looks :is(.iron, .plain, .sage, .paper)::before {
	content: "";
	width: 10px;
	height: 10px;
	border: 2px solid;
	border-radius: 50%;
}

.looks .iron::before {
	background: light-dark(oklch(0.905 0.012 245), oklch(0.16 0.004 250));
	border-color: light-dark(oklch(0.56 0.197 264), oklch(0.72 0.13 264));
}

.looks .plain::before {
	background: light-dark(oklch(0.985 0.003 106), oklch(0 0 250));
	border-color: light-dark(oklch(0.264 0 0), oklch(0.82 0.025 250));
}

.looks .sage::before {
	background: light-dark(oklch(0.955 0.012 150), oklch(0.145 0.012 165));
	border-color: light-dark(oklch(0.48 0.084 152), oklch(0.76 0.075 150));
}

.looks .paper::before {
	background: light-dark(oklch(0.943 0.021 79), oklch(0.155 0.012 70));
	border-color: light-dark(oklch(0.46 0.066 64), oklch(0.78 0.085 60));
}

/* Home */
.eyebrow.accent {
	color: var(--ac-text);
}

.fine {
	font-family: var(--mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	line-height: 1.8;
	color: var(--ink3);
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 30px 0 0;
}

.hero {
	background: radial-gradient(90% 70% at 50% -20%, var(--glow), transparent 68%);
}

.hero .wrap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 56px;
	align-items: center;
	padding-block: 88px 76px;
}

.hero h1 {
	font-size: clamp(2.375rem, 5.4vw, 3.875rem);
	line-height: 1.04;
	letter-spacing: -0.028em;
}

.hero .lead {
	max-width: 46ch;
	margin-top: 20px;
	font-size: 1.0625rem;
}

.hero .fine {
	margin: 22px 0 0;
}

/* The phone: a frame around a drawn vault list. */
.phone {
	justify-self: center;
	width: 268px;
	max-width: 100%;
	padding: 10px;
	border-radius: 34px;
	background: var(--surf);
	border: 1px solid var(--line);
	box-shadow: 0 30px 70px oklch(0.1 0.02 310 / 0.45);
}

.screen {
	display: flex;
	flex-direction: column;
	gap: 10px;
	aspect-ratio: 412 / 892;
	padding: 22px 16px;
	border-radius: 26px;
	background: var(--bg);
}

.screen .bar {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.screen .bar i {
	height: 22px;
	flex: 1;
	border-radius: 7px;
	background: var(--surf);
}

.screen .bar i:first-child {
	flex: 0 0 64px;
	background: var(--ac-soft);
}

.screen .row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 12px;
	border-radius: 12px;
	background: var(--surf);
}

.screen .row b {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--ink3);
	border-radius: 5px;
}

.screen .row span {
	height: 8px;
	width: 55%;
	border-radius: 4px;
	background: var(--line);
}

.screen .row.open {
	background: var(--ac-soft);
}

.screen .row.open b {
	border-color: var(--ac);
	background: var(--ac);
}

.screen .pill {
	width: 56%;
	height: 38px;
	margin: auto auto 6px;
	border-radius: 12px;
	background: var(--ac);
}

/* Three short points between two hairlines. */
.strip {
	border-block: 1px solid var(--line2);
}

.strip .wrap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	column-gap: 56px;
}

.strip .wrap > div {
	padding-block: 34px;
}

.strip .eyebrow {
	margin: 0;
	font-size: 0.625rem;
}

.strip p:last-child {
	margin: 10px 0 0;
	font-size: 0.9375rem;
	color: var(--ink2);
}

.section {
	padding-block: 84px;
}

.section h2 {
	max-width: 20ch;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 16px;
	margin-top: 34px;
}

.card {
	padding: 26px 24px 28px;
	border-radius: 18px;
	background: var(--bg);
	border: 1px solid var(--line2);
}

.card.on {
	background: var(--ac-soft);
	border-color: var(--ac);
}

.card .eyebrow {
	margin: 0;
	font-size: 0.625rem;
	letter-spacing: 0.14em;
	color: var(--ink3);
}

.card .eyebrow.accent {
	color: var(--ac-text);
}

.card h3 {
	margin-top: 12px;
	font-size: 1.1875rem;
}

.card p:last-child {
	margin: 10px 0 0;
	font-size: 0.90625rem;
	line-height: 1.65;
	color: var(--ink2);
}

/* A full-width band on the raised colour. */
.band {
	border-top: 1px solid var(--line2);
	background: var(--bg);
}

.band .wrap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 56px;
	align-items: start;
	padding-block: 84px;
}

.band .lead {
	max-width: 44ch;
}

/* Numbered steps, the number in mono. */
.steps {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	display: flex;
	gap: 16px;
	align-items: baseline;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--surf);
	font-size: 0.9375rem;
	line-height: 1.55;
	counter-increment: step;
}

.steps li::before {
	content: counter(step, decimal-leading-zero);
	flex-shrink: 0;
	width: 24px;
	font-family: var(--mono);
	font-size: 0.65625rem;
	letter-spacing: 0.1em;
	color: var(--ac-text);
}

/* A heading on one side and a button on the other, wrapping on a phone. */
.split {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-end;
	justify-content: space-between;
}

.teaser {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin-top: 30px;
}

.teaser a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px 20px 24px;
	border-radius: 16px;
	background: var(--bg);
	border: 1px solid var(--line2);
	color: var(--ink);
}

.teaser a:hover {
	border-color: var(--ac);
	color: var(--ink);
}

.teaser .size {
	font-size: 1.25rem;
	font-weight: 500;
}

.teaser .price {
	margin-top: 4px;
	font-size: 0.90625rem;
	color: var(--ac-text);
}

.teaser .fine {
	font-size: 0.65625rem;
	letter-spacing: 0.06em;
}

/* A line under the plans that Bitcoin is taken, with the way to its prices. */
.teaser-btc {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: baseline;
	justify-content: space-between;
	margin-top: 14px;
	padding: 16px 20px;
	border-radius: 14px;
	border: 1px dashed var(--line);
	color: var(--ink);
	font-size: 0.90625rem;
	line-height: 1.55;
}

.teaser-btc:hover {
	background: var(--surf);
	color: var(--ink);
}

.teaser-btc .go {
	font-size: 0.875rem;
	white-space: nowrap;
	color: var(--ac-text);
}

/* Pricing */
h1.narrow {
	max-width: 18ch;
}

/* A step of the pricing form: a number and what it asks. */
/* A switch sends the page back to its own step, which then sits clear of the header. */
.step {
	margin: 30px 0 0;
	scroll-margin-top: 96px;
	font-family: var(--mono);
	font-size: 0.65625rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink2);
}

.lead + .step, .problem + .step, .choose > .step:first-child {
	margin-top: 38px;
}

/* How to pay: two buttons drawn as cards, each with a ring that fills when it is on. */
.ways {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 10px;
	margin-top: 12px;
}

.way {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px 20px 20px;
	border-radius: 16px;
	border: 1px solid var(--line2);
	background: var(--bg);
	color: var(--ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.way.on {
	background: var(--ac-soft);
	border-color: var(--ac);
}

.ring {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 17px;
	height: 17px;
	margin-top: 3px;
	border-radius: 50%;
	border: 1.5px solid var(--line);
}

.way.on .ring {
	border-color: var(--ac);
}

.way.on .ring::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ac);
}

.way-text {
	display: block;
	flex: 1;
	min-width: 0;
}

.way-head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: baseline;
	justify-content: space-between;
}

.way-name {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.0625rem;
	font-weight: 500;
}

.way-name .btc-coin {
	width: 22px;
	height: 22px;
	font-size: 0.8125rem;
}

.tag {
	font-family: var(--mono);
	font-size: 0.625rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ac-text);
}

.way-desc {
	display: block;
	margin-top: 6px;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--ink2);
}

/* The billing cycle or the Bitcoin length, and a line on what it means. */
.cycle {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
	margin-top: 12px;
}

.cycle .switch {
	flex: 0 0 auto;
	max-width: 100%;
	margin-top: 0;
	overflow-x: auto;
	flex-wrap: nowrap;
}

.cycle .note {
	flex: 1 1 260px;
	max-width: 48ch;
	margin: 0;
	font-size: 0.84375rem;
	line-height: 1.55;
}

/* Links or buttons that read as one control, for example monthly and yearly. */
.switch {
	display: inline-flex;
	flex-wrap: wrap;
	margin-top: 34px;
	padding: 4px;
	border-radius: 13px;
	background: var(--bg);
	border: 1px solid var(--line2);
}

.switch a, .switch button {
	padding: 10px 20px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	font: inherit;
	font-size: 0.90625rem;
	white-space: nowrap;
	color: var(--ink2);
	cursor: pointer;
}

.switch a.on, .switch button.on {
	background: var(--ac-soft);
	color: var(--ink);
}

.free {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	padding: 24px 24px 26px;
	border-radius: 18px;
	border: 1px dashed var(--line);
}

.free > div {
	min-width: 220px;
}

.free h3 {
	font-size: 1.3125rem;
}

.free p {
	max-width: 52ch;
	margin: 8px 0 0;
	font-size: 0.90625rem;
	color: var(--ink2);
}

.free .button {
	padding: 14px 22px;
	background: transparent;
	border-color: var(--ac);
	color: var(--ac-text);
	font-size: 0.9375rem;
}

.free .button:hover {
	background: var(--ac-soft);
	filter: none;
}

/* The sizes are a list with a column each for the size, the price per GB and the price.
   The heading row and the rows share the columns. */
.plans-head,
.plan {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) 130px 130px;
	gap: 16px;
	align-items: center;
	padding-inline: 20px;
}

.plans-head {
	margin-top: 14px;
	padding-bottom: 10px;
	font-family: var(--mono);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink2);
}

.plans-head span:last-child {
	text-align: right;
}

.plans {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line2);
	border-radius: 16px;
	background: var(--bg);
	overflow: hidden;
}

/* A plan is a radio button drawn as a row. The row itself shows the choice. */
.plan {
	min-height: 64px;
	cursor: pointer;
}

.plan + .plan {
	border-top: 1px solid var(--line2);
}

.plan.off {
	cursor: default;
}

.plan input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.plan:has(input:checked) {
	background: var(--ac-soft);
}

.plan:has(input:focus-visible) {
	outline: 2px solid var(--ac);
	outline-offset: -2px;
}

/* The ring of a radio button, filled when the row is picked. */
.plan .dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1.5px solid var(--ink3);
}

.plan.off .dot {
	visibility: hidden;
}

.plan:has(input:checked) .dot {
	border: 6px solid var(--ac);
	background: var(--ac-ink);
}

.plan .size {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
	font-size: 1.25rem;
	font-weight: 500;
}

.plan .gb {
	font-family: var(--mono);
	font-size: 0.8125rem;
	color: var(--ink2);
}

.plan .cost {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 2px 8px;
	align-items: baseline;
}

.plan .price {
	font-size: 1.0625rem;
	font-weight: 500;
	white-space: nowrap;
}

/* What the same time costs by card, next to the Bitcoin price. */
.plan .was {
	font-size: 0.8125rem;
	white-space: nowrap;
	color: var(--ink3);
}

/* The list and, beside it, the summary of the size picked, which stays in view. */
.picker {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
}

.picker:not(:has(.summary)) {
	grid-template-columns: minmax(0, 1fr);
}

.summary {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 40px;
	padding: 28px;
	border-radius: 20px;
	background: var(--bg);
	border: 1px solid var(--line2);
}

.summary p {
	margin: 0;
}

.summary .fine {
	font-size: 0.6875rem;
	letter-spacing: 0.05em;
	line-height: 1.7;
}

.summary .picked {
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.big-size {
	font-size: 3.5rem;
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1;
}

.big-size .unit {
	font-size: 1.375rem;
	letter-spacing: 0;
	color: var(--ink2);
}

.big-price {
	margin-top: 10px !important;
}

.big-price .price {
	font-size: 1.625rem;
	font-weight: 500;
}

.big-price .per {
	font-size: 0.9375rem;
	color: var(--ink2);
}

.facts {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0 0;
	padding-block: 14px;
	border-block: 1px solid var(--line2);
	font-size: 0.875rem;
}

.facts div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.facts dt {
	color: var(--ink2);
}

.facts dd {
	margin: 0;
	text-align: right;
}

/* The one line naming the size is for the phone's bar; here the summary says more. */
.summary .chosen {
	display: none;
}

.summary .button {
	padding: 15px 26px;
	text-align: center;
}

/* Below 1000px there is no room beside the list, so the summary is a bar that follows
   the list at the foot of the screen, with one line naming the size. */
@media (max-width: 999px) {
	.picker {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.summary {
		top: auto;
		bottom: 12px;
		z-index: 2;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 14px 18px;
		align-items: center;
		justify-content: space-between;
		margin-top: 22px;
		padding: 16px 20px;
		border-radius: 16px;
		border-color: var(--line);
		box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
	}

	.summary .picked,
	.summary .full {
		display: none;
	}

	.summary .chosen {
		display: block;
		font-size: 1rem;
	}

	.bar-text {
		min-width: 200px;
	}

	.bar-text .fine {
		margin-top: 6px;
	}
}

/*
 * The summary names the size that is picked, and so can its button. Each holds a part for
 * every row, in the same order, and shows the one whose radio button is checked. Twelve
 * rows are covered.
 */
.chosen {
	margin: 0;
	font-size: 1rem;
}

.follows > * {
	display: none;
}

.choose:has(.plan:nth-child(1) input:checked) .follows > :nth-child(1),
.choose:has(.plan:nth-child(2) input:checked) .follows > :nth-child(2),
.choose:has(.plan:nth-child(3) input:checked) .follows > :nth-child(3),
.choose:has(.plan:nth-child(4) input:checked) .follows > :nth-child(4),
.choose:has(.plan:nth-child(5) input:checked) .follows > :nth-child(5),
.choose:has(.plan:nth-child(6) input:checked) .follows > :nth-child(6),
.choose:has(.plan:nth-child(7) input:checked) .follows > :nth-child(7),
.choose:has(.plan:nth-child(8) input:checked) .follows > :nth-child(8),
.choose:has(.plan:nth-child(9) input:checked) .follows > :nth-child(9),
.choose:has(.plan:nth-child(10) input:checked) .follows > :nth-child(10),
.choose:has(.plan:nth-child(11) input:checked) .follows > :nth-child(11),
.choose:has(.plan:nth-child(12) input:checked) .follows > :nth-child(12) {
	display: revert;
}

.faq {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 40px 48px;
	margin-top: 66px;
}

.faq h3 {
	font-size: 1.03125rem;
}

.faq p {
	margin: 9px 0 0;
	font-size: 0.90625rem;
	line-height: 1.65;
	color: var(--ink2);
}

/* Security */
.page.mid {
	max-width: 840px;
}

.points {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 40px;
}

.points > div {
	padding: 24px;
	border-radius: 16px;
	background: var(--bg);
}

.points p {
	margin: 10px 0 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--ink2);
}

.dashed {
	margin: 34px 0 0;
	padding: 22px 24px;
	border-radius: 16px;
	border: 1px dashed var(--line);
	font-family: var(--mono);
	font-size: 0.75rem;
	line-height: 1.85;
	letter-spacing: 0.03em;
	color: var(--ac-text);
}

/* Privacy and terms: long text at reading width. */
.legal h1 {
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.022em;
}

.legal .intro {
	margin: 20px 0 0;
	line-height: 1.7;
	color: var(--ink2);
}

.legal h2 {
	margin-top: 44px;
	font-size: 1.25rem;
	letter-spacing: 0;
}

.legal h2 + p {
	margin: 12px 0 0;
	font-size: 0.96875rem;
	line-height: 1.75;
	color: var(--ink2);
}

.page.slim.legal {
	max-width: 760px;
}

/* Checkout */
.page.slim {
	max-width: 820px;
}

.back {
	font-size: 0.875rem;
	color: var(--ink2);
}

h1.small {
	margin-top: 20px;
	font-size: clamp(1.75rem, 3.6vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.order {
	margin: 28px 0 26px;
	padding: 22px 24px;
	border-radius: 16px;
	background: var(--bg);
	border: 1px solid var(--line2);
}

.order p {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 16px;
	margin: 0;
}

.order .big {
	font-size: 1.0625rem;
	font-weight: 500;
}

.order .muted {
	margin-top: 8px;
	font-size: 0.875rem;
	color: var(--ink2);
}

.order .muted a {
	font-size: 0.84375rem;
}

.order .total {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--line2);
	color: var(--ink2);
}

.order .total span:last-child {
	font-size: 1.375rem;
	font-weight: 500;
	color: var(--ink);
}

.eyebrow.field {
	margin: 0 0 8px;
	font-size: 0.625rem;
	letter-spacing: 0.14em;
}

.account {
	margin: 0;
	padding: 15px 16px;
	border-radius: 12px;
	background: var(--surf);
	border: 1px solid var(--line);
	font-size: 0.9375rem;
	overflow-wrap: anywhere;
}

.hint {
	margin: 8px 0 26px;
	font-size: 0.78125rem;
	line-height: 1.6;
	color: var(--ink3);
}

.button.wide {
	display: block;
	width: 100%;
	padding: 17px;
	border-radius: 13px;
	font-size: 1rem;
	text-align: center;
}

.button.wide + .fine, form + .fine {
	margin-top: 18px;
}

/* Sign in */
.form {
	margin-top: 30px;
}

.form label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--mono);
	font-size: 0.625rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink2);
}

.form input:not([type="hidden"]) {
	display: block;
	width: 100%;
	margin-bottom: 18px;
	padding: 15px 16px;
	border-radius: 12px;
	background: var(--surf);
	border: 1px solid var(--line);
	color: var(--ink);
	font: inherit;
	font-size: 0.9375rem;
	outline: none;
}

.form input::placeholder {
	color: var(--ink3);
}

.form input:focus {
	border-color: var(--ac);
}

/* A login code: its six places, as on the phone. */
.form input[data-digits] {
	font-family: var(--mono);
	font-size: 1.125rem;
	letter-spacing: 0.35em;
	text-align: center;
}

/* Short lines under a form or a box. */
.note {
	margin: 18px 0 0;
	font-size: 0.875rem;
	color: var(--ink2);
}

/*
 * "Send a new code" waits 30 seconds, as the API does, with the seconds counted down by
 * the stylesheet. The button stays hidden, and so out of reach, until the wait is over.
 */
@property --left {
	syntax: "<integer>";
	inherits: false;
	initial-value: 0;
}

.again {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 0 0;
	font-size: 0.875rem;
	color: var(--ink2);
}

.again form {
	display: grid;
}

.again form > * {
	grid-area: 1 / 1;
}

.again button {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--ac-text);
	text-align: left;
	cursor: pointer;
	visibility: hidden;
	animation: shown 0s 30s forwards;
}

.again button:hover {
	color: var(--ac);
}

.again .wait {
	animation: gone 0s 30s forwards;
}

.again .left {
	counter-reset: left var(--left);
	animation: count 30s steps(30, end) forwards;
}

.again .left::after {
	content: counter(left);
}

@keyframes shown {
	to { visibility: visible; }
}

@keyframes gone {
	to { visibility: hidden; }
}

@keyframes count {
	from { --left: 30; }
	to { --left: 0; }
}

/* A short line when something went wrong. */
.problem {
	margin: 22px 0 0;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--danger);
	color: var(--danger);
	font-size: 0.875rem;
}

/* Account */
h1.email {
	overflow-wrap: anywhere;
}

.order .total {
	font-size: 0.875rem;
	line-height: 1.6;
}

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

.actions form {
	margin: 0;
}

/* The line after a payment, above the account itself. */
.done {
	margin-bottom: 56px;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--line2);
}

.done .tile {
	display: block;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--ac-soft);
	border: 1px solid var(--ac);
}

.done h1 {
	margin-top: 24px;
}

/* Between the phone menu and a roomy screen the links sit closer together, rather than
   fall to a second row. */
@media (min-width: 761px) and (max-width: 880px) {
	.links {
		gap: 0;
	}

	.menu a:not(.button):not(.me) {
		padding-inline: 8px;
	}

	.menu .button {
		margin-left: 4px;
		padding-inline: 14px;
	}

	.me {
		margin-left: 4px;
	}
}

/* On a phone, under 760px: the menu folds into a panel under the header, and the rows
   that sit side by side on a wide screen stack. */
@media (max-width: 760px) {
	.wrap, .page {
		padding-inline: 20px;
	}

	.page {
		padding-block: 40px 64px;
	}

	.top .wrap {
		flex-wrap: wrap;
		gap: 6px;
		padding: 12px 16px;
	}

	/* The menu's parts become items of the header row, so the links can wrap below. */
	.menu {
		display: contents;
	}

	.menu .button {
		margin-left: 0;
		padding: 11px 15px;
	}

	.me {
		width: 40px;
		height: 40px;
		margin-left: 0;
		font-size: 0.875rem;
	}

	.burger {
		display: flex;
	}

	.links {
		order: 1;
		flex: 1 0 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		margin: 0 -16px -12px;
		padding: 6px 12px 14px;
		border-top: 1px solid var(--line2);
	}

	.burger-box:not(:checked) ~ .wrap .links {
		display: none;
	}

	.menu a:not(.button):not(.me) {
		padding: 14px 12px;
		border-radius: 11px;
		font-size: 1rem;
	}

	.menu .links a.away {
		justify-content: center;
		gap: 10px;
		margin: 10px 0 0;
		padding: 14px 16px;
		border-radius: 12px;
	}

	.menu a.away svg {
		width: 15px;
		height: 15px;
	}

	.hero .wrap {
		grid-template-columns: 1fr;
		gap: 34px;
		padding-block: 40px 48px;
	}

	.phone {
		width: 228px;
	}

	.strip .wrap {
		grid-template-columns: 1fr;
	}

	.strip .wrap > div {
		padding-block: 24px;
		border-top: 1px solid var(--line2);
	}

	.strip .wrap > div:first-child {
		border-top: 0;
	}

	.section {
		padding-block: 56px;
	}

	/* The columns narrow, and the price per GB goes under the size. */
	.plans-head,
	.plan {
		grid-template-columns: 20px minmax(0, 1fr) auto;
		gap: 4px 14px;
		padding-inline: 16px;
	}

	.plans-head span:nth-child(3) {
		display: none;
	}

	.plan {
		padding-block: 12px;
	}

	.plan .dot {
		grid-row: 1 / span 2;
	}

	.plan .gb {
		grid-column: 2;
		grid-row: 2;
	}

	.plan .cost {
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	/* The lengths share the width, so none of them hides past the edge. */
	.cycle .switch {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		width: 100%;
	}

	.cycle .switch button {
		padding: 10px 6px;
	}

	.summary .button,
	.free .button {
		flex: 1 0 100%;
		text-align: center;
	}
}

/* A narrow phone: the header row gives up its spare width before it breaks in two. */
@media (max-width: 400px) {
	.top .wrap {
		gap: 4px;
	}

	.burger {
		width: 40px;
		height: 40px;
	}

	.menu .button {
		padding: 11px 12px;
	}
}

/* Narrower still, and the name goes: the mark alone stands for the site. */
@media (max-width: 340px) {
	.top .brand span {
		display: none;
	}
}

/* The mark that says Bitcoin is taken, in Bitcoin's own orange. */
.btc {
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.btc-coin {
	display: inline-grid;
	place-items: center;
	width: 1.7em;
	height: 1.7em;
	border-radius: 50%;
	background: #f7931a;
	color: #fff;
	font-family: system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: 0;
}
.foot .btc {
	margin-top: 0;
}
