/*
 * The look of the site, from the Claude Design file "Vault Website". The dark theme is
 * the app's own palette; the light one is the design's.
 */

:root {
	/* Each colour is light-dark(light, dark). The device picks, unless the reader did. */
	color-scheme: light dark;
	--page: light-dark(oklch(0.968 0.002 250), oklch(0.145 0.012 310));
	--bg: light-dark(oklch(0.995 0.001 250), oklch(0.185 0.014 310));
	--surf: light-dark(oklch(0.985 0.002 250), oklch(0.235 0.016 310));
	--surf2: light-dark(oklch(0.945 0.003 250), oklch(0.285 0.018 310));
	--line: light-dark(oklch(0.82 0.005 250), oklch(0.34 0.016 310));
	--line2: light-dark(oklch(0.905 0.004 250), oklch(0.27 0.014 310));
	--ink: light-dark(oklch(0.28 0.006 250), oklch(0.955 0.006 310));
	--ink2: light-dark(oklch(0.47 0.006 250), oklch(0.72 0.012 310));
	--ink3: light-dark(oklch(0.56 0.006 250), oklch(0.62 0.012 310));
	--ac: light-dark(oklch(0.50 0.075 150), 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.925 0.030 150), oklch(0.245 0.022 150));
	--ac-text: light-dark(oklch(0.40 0.070 150), oklch(0.74 0.055 150));
	--glow: light-dark(oklch(0.925 0.026 150 / 0.75), oklch(0.27 0.03 150 / 0.5));
	--stripe: repeating-linear-gradient(135deg, light-dark(oklch(0.905 0.004 250), oklch(0.27 0.014 310)) 0 6px, light-dark(oklch(0.965 0.002 250), oklch(0.235 0.016 310)) 6px 12px);
	--danger: light-dark(oklch(0.50 0.13 25), oklch(0.72 0.07 25));

	--sans: "Instrument Sans", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--wide: 1120px;
}

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

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

@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) {
	padding: 8px 12px;
	border-radius: 9px;
	font-size: 0.875rem;
	white-space: nowrap;
	color: var(--ink2);
}

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

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

/* Privacy and Terms move to the footer only on a phone, so the header keeps to two rows. */
@media (max-width: 640px) {
	.menu .roomy {
		display: none;
	}
}

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

/* 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);
}

.foot .base button {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
	cursor: pointer;
}

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

/* The switch offers the theme the page is not in. */
.to-light,
:root[data-theme="dark"] .to-dark {
	display: none;
}

:root[data-theme="dark"] .to-light {
	display: inline;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .to-dark {
		display: none;
	}

	:root:not([data-theme="light"]) .to-light {
		display: inline;
	}
}

/* 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;
}

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

/* Two links that read as one control, for the monthly and yearly prices. */
.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 {
	padding: 10px 20px;
	border-radius: 10px;
	font-size: 0.90625rem;
	white-space: nowrap;
	color: var(--ink2);
}

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

.free {
	margin-top: 26px;
	padding: 24px 24px 26px;
	border-radius: 18px;
	border: 1px dashed var(--line);
}

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

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

.plans {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 14px;
}

/* A plan is a radio button drawn as a row. The row itself shows the choice. */
.plan {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-radius: 16px;
	background: var(--bg);
	border: 1px solid var(--line2);
	cursor: pointer;
}

.plan.off {
	cursor: default;
}

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

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

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

.plan .size {
	min-width: 130px;
	font-size: 1.1875rem;
	font-weight: 500;
}

.plan .figures {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: baseline;
	justify-content: flex-end;
}

.plan .fine {
	letter-spacing: 0.06em;
}

.plan .price {
	font-size: 1rem;
	white-space: nowrap;
	color: var(--ink2);
}

.plan:has(input:checked) .price {
	color: var(--ink);
}

/* The words on the pick button follow the radio button, so no script is needed. */
.pick {
	padding: 9px 16px;
	border-radius: 10px;
	border: 1px solid var(--line);
	font-size: 0.84375rem;
	font-weight: 600;
	color: var(--ink2);
}

.pick::before {
	content: "Select";
}

.plan:has(input:checked) .pick {
	background: var(--ac);
	border-color: var(--ac);
	color: var(--ac-ink);
}

.plan:has(input:checked) .pick::before {
	content: "Selected";
}

.summary {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	margin-top: 22px;
	padding: 22px 24px;
	border-radius: 16px;
	background: var(--bg);
	border: 1px solid var(--line2);
}

.summary .fine {
	margin: 0;
}

.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);
}

/* 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;
}
