/*
 * /pricing only. Tokens, buttons, the plan card, founding batches, and FAQ come from home.css, and the closing call
 * to action is the shared SiteCta (site-chrome.css). This file adds the hero, the bill estimator, the comparison
 * table, and Enterprise. Same rules as the homepage: no gradient backgrounds, one easing curve, spacing on the
 * 2/4/8/12/16/24/32/40/48/64/80/96 scale.
 */

/* —— Hero —— */
.p-hero {
	position: relative;
	padding: 160px 0 32px;
}
.p-hero .section-head {
	max-width: 760px;
}
.p-hero h1 {
	margin-top: 24px;
	font-size: 4rem;
	line-height: 1;
	letter-spacing: -0.045em;
}
/* The homepage chip sits on the dark hero; this one sits on paper. */
.p-hero .announce {
	border-color: var(--line);
	background: var(--raised);
	box-shadow: var(--shadow-card);
	color: var(--ink-soft);
}
.p-hero .announce:hover {
	border-color: rgba(91, 84, 245, 0.45);
	background: var(--raised);
}
.p-hero .announce .i,
.p-hero .pulse,
.p-hero .pulse::after {
	color: var(--violet);
}
.p-hero .pulse,
.p-hero .pulse::after {
	background: var(--violet);
}
.p-hero .announce-left {
	background: var(--violet-tint);
	color: var(--violet-ink);
}
@media (max-width: 767px) {
	.p-hero {
		padding-top: 128px;
	}
	.p-hero h1 {
		font-size: 2.5rem;
		line-height: 2.75rem;
	}
	.p-hero .announce {
		max-width: 100%;
		font-size: 0.75rem;
		line-height: 1rem;
	}
	.p-hero .announce-left {
		display: none;
	}
}

/* —— Bill estimator —— */
.est {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}
@media (min-width: 1024px) {
	.est {
		grid-template-columns: minmax(0, 1fr) minmax(0, 456px);
		gap: 80px;
	}
}
.est-points {
	display: grid;
	gap: 24px;
	margin-top: 40px;
}
.est-point {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 16px;
}
.est-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--raised);
	box-shadow: var(--shadow-card);
	color: var(--violet);
}
.est-icon .i {
	width: 20px;
	height: 20px;
}
.est-point h3 {
	font-size: 1rem;
	line-height: 1.5rem;
	letter-spacing: -0.01em;
}
.est-point p {
	margin-top: 4px;
	color: var(--ink-faint);
	font-size: 0.9375rem;
	line-height: 1.5rem;
}
.receipt {
	position: relative;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--raised);
	box-shadow: var(--shadow-lift);
}
.receipt-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 16px;
}
.receipt-title {
	color: var(--ink-faint);
	font-family: var(--mono);
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.seg {
	display: inline-flex;
	gap: 2px;
	margin: 0;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 9999px;
	background: var(--sunk);
}
.seg label {
	padding: 4px 12px;
	border-radius: 9999px;
	color: var(--ink-faint);
	font-size: 0.8125rem;
	line-height: 1.25rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}
.seg input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.seg label:has(input:checked) {
	background: var(--ink);
	color: #fff;
}
.seg label:has(input:focus-visible) {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}
.r-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 64px;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	border-top: 1px dashed var(--line-strong);
}
.r-row > .r-amt:nth-child(2) {
	grid-column: 3;
}
.r-row[hidden] {
	display: none;
}
.r-label b {
	display: block;
	font-size: 0.9375rem;
	line-height: 1.375rem;
	font-weight: 600;
}
.r-label small {
	display: block;
	margin-top: 2px;
	color: var(--ink-faint);
	font-size: 0.75rem;
	line-height: 1rem;
}
.r-amt {
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.r-discount .r-label b,
.r-discount .r-amt {
	color: var(--violet-ink);
}
.stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--raised);
}
.stepper button {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--ink-soft);
	cursor: pointer;
	transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}
.stepper button:hover:not(:disabled) {
	background: var(--sunk);
	color: var(--ink);
}
.stepper button:active:not(:disabled) {
	transform: scale(0.94);
}
.stepper button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.stepper output {
	min-width: 28px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.receipt-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--ink);
	font-weight: 600;
}
.receipt-total p {
	color: var(--ink-faint);
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
}
.receipt-total b {
	display: inline-block;
	color: var(--ink);
	font-size: 2.25rem;
	line-height: 2.5rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.receipt-note {
	min-height: 20px;
	margin-top: 4px;
	color: var(--ink-faint);
	font-size: 0.8125rem;
	line-height: 1.25rem;
	text-align: right;
}
.receipt .btn {
	margin-top: 24px;
}
.receipt-fine {
	margin-top: 12px;
	color: var(--ink-faint);
	font-size: 0.75rem;
	line-height: 1rem;
	text-align: center;
}
/* Without JS the estimate can't change, so it shows the default bill only. */
html:not(.js) .stepper button,
html:not(.js) .seg {
	visibility: hidden;
}
@media (max-width: 479px) {
	.receipt {
		padding: 20px 16px;
	}
	.r-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.r-row .stepper {
		grid-row: 2;
		justify-self: start;
	}
	.r-row > .r-amt,
	.r-row > .r-amt:nth-child(2) {
		grid-column: 2;
	}
}

/* —— Growth and Enterprise, line by line ——
   One real table: rows grouped by the two loops, the Growth column tinted with a violet cap, short notes under row
   names instead of tooltips. It stays a table on phones (narrow value columns), so screen readers keep the grid. */
.cmp-head {
	display: grid;
	gap: 16px;
	align-items: end;
}
@media (min-width: 1024px) {
	.cmp-head {
		grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
		gap: 64px;
	}
}
.cmp-lede {
	color: var(--ink-faint);
	font-size: 1.125rem;
	line-height: 1.75rem;
}
.cmp-wrap {
	margin-top: 48px;
}
.cmp {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	font-variant-numeric: tabular-nums;
}
.cmp col.cmp-col-growth,
.cmp col:last-child {
	width: 220px;
}
.cmp thead th {
	position: sticky;
	top: 88px;
	z-index: 2;
	padding: 16px 16px 12px;
	border-bottom: 1px solid var(--ink);
	background: var(--paper);
	text-align: left;
	vertical-align: bottom;
}
.cmp-plan {
	text-align: center !important;
}
.cmp-plan-name {
	display: block;
	font-size: 1.125rem;
	line-height: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.cmp-plan-price {
	display: block;
	margin-top: 2px;
	color: var(--ink-faint);
	font-size: 0.8125rem;
	line-height: 1.25rem;
	font-weight: 500;
}
.cmp-cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	color: var(--violet-ink);
	font-size: 0.8125rem;
	line-height: 1.25rem;
	font-weight: 600;
	text-decoration: none;
}
.cmp-cta:hover {
	text-decoration: underline;
}
.cmp-cta .i {
	width: 14px;
	height: 14px;
}
/* The Growth column: raised paper with a violet cap, so the plan you buy reads as one strip down the table. */
.cmp thead .cmp-growth {
	border-top: 2px solid var(--violet);
	border-radius: 16px 16px 0 0;
	background: var(--raised);
}
.cmp tbody td:nth-child(2) {
	background: var(--raised);
}
.cmp thead .cmp-growth,
.cmp tbody td:nth-child(2),
.cmp tbody .cmp-group th {
	box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line);
}
.cmp tbody .cmp-group th {
	box-shadow: none;
}
.cmp tbody:last-child tr:last-child td:nth-child(2) {
	border-radius: 0 0 16px 16px;
	box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line);
}
.cmp-group th {
	padding: 32px 0 12px;
	border-bottom: 1px solid var(--line-strong);
	color: var(--ink-faint);
	font-family: var(--mono);
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
}
.cmp-group th span {
	margin-right: 8px;
	padding: 2px 8px;
	border-radius: 9999px;
	background: var(--violet-tint);
	color: var(--violet-ink);
}
.cmp tbody tr:not(.cmp-group) th,
.cmp tbody td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
}
.cmp tbody tr:not(.cmp-group) th {
	padding-left: 0;
	color: var(--ink-soft);
	font-size: 0.9375rem;
	line-height: 1.375rem;
	font-weight: 500;
	text-align: left;
}
.cmp tbody th small {
	display: block;
	max-width: 520px;
	margin-top: 2px;
	color: var(--ink-faint);
	font-size: 0.8125rem;
	line-height: 1.25rem;
	font-weight: 400;
}
.cmp tbody td {
	color: var(--ink);
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	text-align: center;
	vertical-align: middle;
}
.cmp .cmp-yes {
	display: inline-block;
	width: 20px;
	height: 20px;
	padding: 3px;
	border-radius: 9999px;
	background: var(--mint-tint);
	color: var(--mint);
	vertical-align: middle;
}
.cmp-no {
	color: var(--line-strong);
	font-weight: 400;
}
@media (max-width: 767px) {
	.cmp-wrap {
		margin-top: 32px;
	}
	.cmp col.cmp-col-growth,
	.cmp col:last-child {
		width: 88px;
	}
	.cmp thead th {
		top: 72px;
		padding: 12px 8px;
	}
	.cmp-plan-name {
		font-size: 0.9375rem;
	}
	.cmp-plan-price,
	.cmp-cta {
		display: none;
	}
	.cmp tbody tr:not(.cmp-group) th {
		font-size: 0.875rem;
		line-height: 1.25rem;
	}
	.cmp tbody th small {
		font-size: 0.75rem;
		line-height: 1.125rem;
	}
	.cmp tbody td {
		padding: 12px 8px;
		font-size: 0.75rem;
		line-height: 1rem;
	}
	.cmp tbody tr:not(.cmp-group) th {
		padding: 12px 8px 12px 0;
	}
}

/* —— Enterprise: a slim strip under the table —— */
.ent {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: 32px;
	border: 1px dashed var(--line-strong);
	border-radius: 24px;
	background: var(--sunk);
}
.ent h2 {
	margin-top: 12px;
	font-size: 1.5rem;
	line-height: 2rem;
	letter-spacing: -0.02em;
}
.ent-copy > p:not(.label) {
	max-width: 640px;
	margin-top: 8px;
	color: var(--ink-faint);
	font-size: 1rem;
	line-height: 1.5rem;
}
.ent-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
@media (min-width: 1024px) {
	.ent {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 48px;
		padding: 32px 40px;
	}
}
@media (max-width: 767px) {
	.ent {
		padding: 24px;
	}
}
