@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&family=Noto+Sans+TC:wght@400;500;700;900&display=swap");

:root {
	--felt: #0e3b2e;
	--felt-deep: #092a21;
	--paper: #f4f0e6;
	--ink: #16130e;
	--red: #c33a2e;
	--gold: #c6a15b;
	--muted: #6d675c;
	--line: rgba(22, 19, 14, 0.16);
	--line-light: rgba(244, 240, 230, 0.22);
	--display: "Bricolage Grotesque", "Noto Sans TC", "PingFang HK", sans-serif;
	--body: "IBM Plex Sans", "Noto Sans TC", "PingFang HK", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--wrap: 1180px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
}

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

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--paper);
	color: var(--ink);
	padding: 12px 16px;
	z-index: 100;
}

.skip:focus {
	left: 12px;
	top: 12px;
}

:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 3px;
}

/* Header */

.site-header {
	background: var(--felt);
	color: var(--paper);
	padding: 22px 0;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 32px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 24px;
	letter-spacing: -0.02em;
	text-decoration: none;
	margin-right: auto;
}

.brand-mark {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 46px;
	background: var(--paper);
	color: var(--red);
	border-radius: 5px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	transform: rotate(-4deg);
}

.nav {
	display: flex;
	gap: 26px;
	font-size: 15px;
}

.nav a {
	text-decoration: none;
	color: var(--paper);
	opacity: 0.82;
}

.nav a:hover {
	opacity: 1;
}

.nav-login {
	display: none;
}

.lang {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	letter-spacing: 0.02em;
}

.lang a {
	color: rgba(244, 240, 230, 0.6);
	text-decoration: none;
	padding: 2px;
}

.lang a:hover,
.lang a[aria-current="true"] {
	color: var(--paper);
}

.lang span {
	color: rgba(244, 240, 230, 0.28);
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px;
	background: var(--red);
	color: var(--paper);
	border: 2px solid var(--red);
	border-radius: 999px;
	font-family: var(--body);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
	background: var(--paper);
	color: var(--red);
	transform: translateY(-1px);
}

.btn-small {
	min-height: 40px;
	padding: 0 18px;
	font-size: 14px;
}

.btn-outline {
	background: transparent;
	color: var(--paper);
	border-color: var(--paper);
}

.btn-outline:hover {
	background: var(--paper);
	color: var(--felt);
}

.link {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	color: var(--paper);
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 2px;
	font-weight: 500;
}

/* Hero */

.hero {
	background: var(--felt);
	color: var(--paper);
	padding: 48px 0 0;
	overflow: hidden;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px;
	align-items: center;
	padding-bottom: 64px;
}

.eyebrow {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: var(--gold);
}

.hero h1 {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(44px, 6.4vw, 84px);
	line-height: 0.98;
	letter-spacing: -0.035em;
	margin: 0 0 24px;
	max-width: 13ch;
}

.hero .lede {
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.45;
	max-width: 30ch;
	margin: 0 0 32px;
	color: rgba(244, 240, 230, 0.88);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 24px;
	align-items: center;
}

.fineprint {
	margin: 26px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(244, 240, 230, 0.62);
	max-width: 44ch;
}

.promise {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 24px 0 0;
	font-size: 14px;
	letter-spacing: 0.02em;
	color: var(--gold);
}

.promise strong {
	font-weight: 600;
	color: var(--paper);
}

.promise i {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.75;
}

/* The Jack card */

.hero-card {
	display: flex;
	justify-content: center;
	perspective: 900px;
}

.playing-card {
	position: relative;
	width: min(310px, 66vw);
	aspect-ratio: 5 / 7;
	background: var(--paper);
	color: var(--ink);
	border-radius: 20px;
	box-shadow: 0 36px 70px rgba(0, 0, 0, 0.38), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
	transform: rotate(-6deg);
	animation: deal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes deal {
	from {
		opacity: 0;
		transform: translateY(28px) rotate(-12deg);
	}
	to {
		opacity: 1;
		transform: translateY(0) rotate(-6deg);
	}
}

.corner {
	position: absolute;
	font-family: var(--display);
	font-weight: 800;
	font-size: 26px;
	line-height: 0.95;
	color: var(--red);
	text-align: center;
}

.corner .suit {
	display: block;
	font-size: 20px;
	color: var(--ink);
	margin-top: 4px;
}

.corner.tl {
	top: 18px;
	left: 20px;
}

.corner.br {
	bottom: 18px;
	right: 20px;
	transform: rotate(180deg);
}

.card-center {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
}

.card-j {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(120px, 20vw, 176px);
	line-height: 0.8;
	letter-spacing: -0.06em;
	color: var(--red);
}

.card-suit {
	font-size: 58px;
	line-height: 1;
	color: var(--ink);
	margin-top: 10px;
}

.suits {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--line-light);
}

.suit-item {
	display: grid;
	grid-template-columns: 22px 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: start;
	padding: 20px 24px 24px;
	border-right: 1px solid var(--line-light);
	color: var(--paper);
}

.suit-item:last-child {
	border-right: 0;
}

.suit-item strong {
	grid-column: 2;
	grid-row: 1;
	font-family: var(--display);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.3;
}

.suit-item span:last-child {
	grid-column: 2;
	grid-row: 2;
	color: rgba(244, 240, 230, 0.66);
	font-size: 14px;
	line-height: 1.4;
}

.suit-glyph {
	grid-column: 1;
	grid-row: 1 / span 2;
	font-size: 20px;
	line-height: 1.4;
	color: var(--gold);
}

/* Sections */

.section {
	padding: 96px 0;
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 44px;
}

.section h2 {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(34px, 4.6vw, 56px);
	line-height: 1.02;
	letter-spacing: -0.025em;
	margin: 0;
	max-width: 15ch;
}

.section-head p {
	max-width: 38ch;
	margin: 0;
	color: var(--muted);
}

/* Hand of four */

.hand-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 2px solid var(--ink);
}

.suite {
	padding: 24px 26px 32px 0;
	border-right: 1px solid var(--line);
}

.suite:last-child {
	border-right: 0;
	padding-right: 0;
}

.suite-glyph {
	font-size: 34px;
	line-height: 1;
	color: var(--red);
}

.suite:nth-child(2) .suite-glyph,
.suite:nth-child(4) .suite-glyph {
	color: var(--ink);
}

.suite h3 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 24px;
	margin: 18px 0 8px;
	letter-spacing: -0.01em;
}

.suite p {
	margin: 0;
	font-size: 15px;
	color: var(--muted);
	max-width: 26ch;
}

.suite .from {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: var(--ink);
	font-size: 14px;
}

/* Plain-money conversions */

.cost-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 2px solid var(--ink);
}

.cost-item {
	padding: 26px 26px 30px 0;
	border-right: 1px solid var(--line);
}

.cost-item:last-child {
	border-right: 0;
	padding-right: 0;
}

.cost-figure {
	display: block;
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(32px, 3.4vw, 46px);
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--red);
}

.cost-figure small {
	display: block;
	margin: 8px 0 0;
	font-size: 0.32em;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--muted);
	white-space: nowrap;
}

.cost-item h3 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 19px;
	letter-spacing: -0.01em;
	margin: 16px 0 8px;
}

.cost-item p {
	margin: 0;
	font-size: 15px;
	color: var(--muted);
	max-width: 25ch;
}

.cost-note {
	margin: 20px 0 0;
}

/* Full rate card, kept out of the way */

.price-details {
	margin: 48px 0 0;
	border-top: 1px solid var(--line);
}

.price-details summary {
	padding: 18px 0;
	cursor: pointer;
	font-family: var(--display);
	font-weight: 600;
	font-size: 17px;
	color: var(--ink);
}

.price-details summary::marker {
	color: var(--red);
}

.price-details[open] summary {
	padding-bottom: 8px;
}

.price-details .price-table {
	margin-top: 8px;
}

/* On the pricing page the same grid sits inside a narrower column. */

.page-body .cost-grid {
	margin-top: 20px;
}

.page-body .cost-item {
	padding-right: 20px;
}

.page-body .cost-figure {
	font-size: clamp(26px, 2.6vw, 34px);
}

.page-body .cost-figure small {
	font-size: 13px;
	margin-top: 6px;
}

/* How */

.how {
	background: var(--felt);
	color: var(--paper);
}

.how h2 {
	color: var(--paper);
}

.how .section-head p {
	color: rgba(244, 240, 230, 0.66);
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line-light);
}

.step {
	padding: 28px 32px 0 0;
	border-right: 1px solid var(--line-light);
}

.step:last-child {
	border-right: 0;
	padding-right: 0;
}

.step .num {
	display: block;
	font-family: var(--display);
	font-weight: 600;
	font-size: 56px;
	line-height: 1;
	color: var(--gold);
	letter-spacing: -0.04em;
}

.step h3 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 22px;
	margin: 18px 0 8px;
}

.step p {
	margin: 0;
	font-size: 15px;
	color: rgba(244, 240, 230, 0.72);
	max-width: 30ch;
}

/* Trust */

.trust-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trust-item {
	padding: 22px 0;
	border-top: 1px solid var(--line);
}

.trust-item h3 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 20px;
	margin: 0 0 6px;
}

.trust-item p {
	margin: 0;
	font-size: 15px;
	color: var(--muted);
	max-width: 38ch;
}

/* Beta */

.beta {
	background: var(--felt);
	color: var(--paper);
	text-align: left;
}

.beta .wrap {
	padding-top: 16px;
	padding-bottom: 16px;
}

.beta h2 {
	color: var(--paper);
	max-width: 14ch;
}

.beta p {
	max-width: 44ch;
	color: rgba(244, 240, 230, 0.74);
	margin: 20px 0 30px;
}

.beta .mail {
	display: block;
	margin-top: 18px;
	font-size: 15px;
	color: rgba(244, 240, 230, 0.7);
}

/* Footer */

.site-footer {
	background: var(--ink);
	color: rgba(244, 240, 230, 0.72);
	padding: 56px 0 40px;
	font-size: 14px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

.site-footer .brand {
	color: var(--paper);
	font-size: 21px;
	margin: 0 0 12px;
}

.site-footer h3 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 14px;
	color: var(--paper);
	margin: 0 0 12px;
}

.site-footer a {
	color: rgba(244, 240, 230, 0.72);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--paper);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.footer-links {
	display: grid;
	gap: 8px;
}

.footer-bottom {
	border-top: 1px solid rgba(244, 240, 230, 0.16);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 12px;
	color: rgba(244, 240, 230, 0.5);
}

/* Inner pages */

.page-hero {
	background: var(--felt);
	color: var(--paper);
	padding: 64px 0 56px;
}

.page-hero h1 {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(40px, 6vw, 68px);
	line-height: 1;
	letter-spacing: -0.03em;
	margin: 0 0 16px;
	max-width: 16ch;
}

.page-hero p {
	max-width: 52ch;
	margin: 0;
	color: rgba(244, 240, 230, 0.72);
}

.page-body {
	padding: 64px 0 96px;
}

.page-body .wrap {
	max-width: 900px;
}

.legal {
	max-width: 760px;
}

.legal h2 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 26px;
	letter-spacing: -0.01em;
	margin: 40px 0 12px;
}

.legal h3 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 19px;
	margin: 28px 0 8px;
}

.legal p,
.legal li {
	font-size: 16px;
	color: #3c372e;
}

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

.legal .draft {
	display: inline-block;
	margin-bottom: 24px;
	padding: 6px 12px;
	border: 1px solid var(--red);
	border-radius: 999px;
	color: var(--red);
	font-size: 13px;
	font-weight: 600;
}

/* Pricing table */

.price-table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0 16px;
	font-size: 15px;
}

.price-table th {
	text-align: left;
	font-family: var(--display);
	font-weight: 600;
	font-size: 13px;
	padding: 12px 12px 12px 0;
	border-bottom: 2px solid var(--ink);
}

.price-table td {
	padding: 14px 12px 14px 0;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.price-table td:last-child,
.price-table th:last-child {
	text-align: right;
	padding-right: 0;
}

.note {
	font-size: 14px;
	color: var(--muted);
	max-width: 62ch;
}

/* Docs */

.docs h2 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 28px;
	margin: 44px 0 12px;
}

.docs h3 {
	font-family: var(--display);
	font-weight: 600;
	font-size: 20px;
	margin: 28px 0 8px;
}

.docs p,
.docs li {
	color: #3c372e;
}

.docs code {
	font-family: var(--mono);
	font-size: 0.88em;
	background: rgba(22, 19, 14, 0.07);
	padding: 2px 6px;
	border-radius: 4px;
}

.code-block {
	background: var(--ink);
	color: var(--paper);
	padding: 20px 22px;
	border-radius: 10px;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 13px;
	line-height: 1.6;
	margin: 14px 0 22px;
}

.code-block code {
	background: none;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

/* Responsive */

@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hero-card {
		justify-content: flex-start;
	}

	.playing-card {
		width: min(240px, 60vw);
	}

	.suits {
		grid-template-columns: repeat(2, 1fr);
	}

	.suit-item:nth-child(2) {
		border-right: 0;
	}

	.suit-item:nth-child(1),
	.suit-item:nth-child(2) {
		border-bottom: 1px solid var(--line-light);
	}

	.site-header .wrap {
		gap: 20px;
	}

	.nav {
		gap: 18px;
	}

	.hand-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.suite {
		border-bottom: 1px solid var(--line);
		padding-right: 20px;
	}

	.suite:nth-child(2) {
		border-right: 0;
	}

	.suite:nth-child(3),
	.suite:nth-child(4) {
		border-bottom: 0;
		padding-top: 28px;
	}

	.steps {
		grid-template-columns: 1fr;
	}

	.cost-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cost-item {
		border-bottom: 1px solid var(--line);
		padding-right: 20px;
	}

	.cost-item:nth-child(2) {
		border-right: 0;
	}

	.cost-item:nth-child(3),
	.cost-item:nth-child(4) {
		border-bottom: 0;
		padding-top: 28px;
	}

	.step {
		border-right: 0;
		border-bottom: 1px solid var(--line-light);
		padding: 26px 0;
	}

	.step:last-child {
		border-bottom: 0;
	}

	.trust-list {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.section-head {
		display: block;
	}

	.section-head p {
		margin-top: 16px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 620px) {
	body {
		font-size: 16px;
	}

	.site-header .wrap {
		flex-wrap: wrap;
		gap: 14px;
	}

	.nav {
		order: 3;
		width: 100%;
		gap: 18px;
		font-size: 14px;
	}

	.site-header .btn-small {
		display: none;
	}

	.nav-login {
		display: inline;
	}

	.section {
		padding: 72px 0;
	}

	.hand-grid {
		grid-template-columns: 1fr;
	}

	.suite,
	.suite:nth-child(2),
	.suite:nth-child(3),
	.suite:nth-child(4) {
		border-right: 0;
		border-bottom: 1px solid var(--line);
		padding: 22px 0;
	}

	.suite:last-child {
		border-bottom: 0;
	}

	.cost-grid {
		grid-template-columns: 1fr;
	}

	.cost-item,
	.cost-item:nth-child(2),
	.cost-item:nth-child(3),
	.cost-item:nth-child(4) {
		border-right: 0;
		border-bottom: 1px solid var(--line);
		padding: 22px 0;
	}

	.cost-item:last-child {
		border-bottom: 0;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.hero h1 {
		max-width: 10ch;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.playing-card {
		animation: none;
	}

	.btn {
		transition: none;
	}
}
