/* ==========================================================================
   Payable v2 theme
   Hand-written, no build step. Pages opt in via page_chunks/v2/*.
   ========================================================================== */

:root {
	--brand: #6741d9;
	--brand-hover: #5632c0;
	--brand-soft: #efeafc;
	--brand-tint: #f3effc;
	--brand-line: #ddd6f3;
	--band-line: #e4dcf7;
	--brand-glow: rgba(103, 65, 217, .6);

	--blue: #0083ff;
	--blue-hover: #006fd9;
	--green: #0b8a3e;
	--green-hover: #08702f;
	--green-ink: #0b7a34;
	--green-soft: #dff3e6;
	--green-tint: #eaf7ee;
	--green-line: #bfe3cb;

	--ink: #17202b;
	--ink-nav: #273f5b;
	--ink-2: #4b5d73;
	--muted: #6987ab;

	--surface: #fff;
	--surface-tint: #faf9fe;
	--surface-grey: #f3f4f7;
	--line: #eeeaf6;
	--line-grey: #e6e8ee;

	--dark: #1f1640;
	--footer: #17131f;
	--footer-ink: #b5aed0;
	--footer-line: #2c2539;

	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 28px;
	--radius-xl: 32px;

	--container: 1312px;
	--gutter: 24px;

	--font: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, p, figure, blockquote { margin: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip-link {
	position: absolute; left: 16px; top: -48px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 800;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout ---------- */

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 56px;
	align-items: center;
}

.grid-auto {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr));
	gap: 20px;
}

.stack { display: flex; flex-direction: column; gap: var(--gap, 18px); }

/* ---------- Typography ---------- */

.eyebrow {
	font-size: 14px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brand);
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--green { color: var(--green); }
.eyebrow--blue { color: var(--blue); }

.h1 {
	font-size: clamp(44px, 5.4vw, 70px);
	line-height: 1.02;
	letter-spacing: -.03em;
	font-weight: 900;
	text-wrap: balance;
}

.h2 {
	font-size: clamp(32px, 3.6vw, 44px);
	line-height: 1.08;
	letter-spacing: -.025em;
	font-weight: 900;
	text-wrap: balance;
}

.h3 { font-size: 22px; font-weight: 900; }

.lead { font-size: 21px; line-height: 1.55; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.body { font-size: 17px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

.text-brand { color: var(--brand); }
.h1 a, .h2 a { color: inherit; }
.h2 a:hover { color: var(--brand); }
#payable-sheets .h2 a:hover { color: var(--green); }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--radius-sm);
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lg { font-size: 18px; padding: 18px 30px; border-radius: 14px; }
.btn--sm { font-size: 15px; padding: 12px 18px; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--shadow { box-shadow: 0 12px 28px -12px rgba(103, 65, 217, .8); }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-hover); color: #fff; }

.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-hover); color: #fff; }

.btn--outline { background: #fff; border: 1.5px solid var(--brand-line); color: var(--ink); }
.btn--outline:hover { border-color: var(--brand); color: var(--ink); }

.btn--outline-green { background: #fff; border: 1.5px solid var(--green-line); color: var(--green-ink); }
.btn--outline-green:hover { border-color: var(--green-ink); color: var(--green-ink); }

.btn--white { background: #fff; color: var(--brand-hover); font-weight: 900; }
.btn--white:hover { background: var(--brand-tint); color: var(--brand-hover); }


.play {
	width: 34px; height: 34px; flex: none; border-radius: 50%;
	background: var(--brand);
	display: inline-flex; align-items: center; justify-content: center;
}
.play::before {
	content: ""; width: 0; height: 0; margin-left: 3px;
	border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.play--lg { width: 48px; height: 48px; }
.play--lg::before { margin-left: 4px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
.play--green { background: var(--green); }

.link-arrow { font-weight: 800; font-size: 15px; }
.link-arrow--green { color: var(--green); }
.link-arrow--green:hover { color: var(--green-hover); }

.btn-row { display: flex; gap: 14px 20px; flex-wrap: wrap; align-items: center; }

/* ---------- Badges ---------- */

.badge {
	display: inline-block;
	font-size: 12px; font-weight: 800;
	padding: 5px 11px; border-radius: 999px;
	background: var(--brand-soft); color: var(--brand-hover);
}
.badge--green { background: var(--green-soft); color: var(--green-ink); }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex; align-items: center; gap: 16px 48px;
	padding-top: 16px; padding-bottom: 16px;
}
.site-header__logo { display: flex; flex: none; }
.site-header__logo img { height: 34px; width: auto; }

.site-header__menu {
	flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px 40px;
}
.site-nav { display: flex; gap: 12px 32px; flex-wrap: wrap; font-size: 16px; font-weight: 700; }
.site-nav a, .site-header__link { color: var(--ink-nav); }
.site-nav a:hover, .site-header__link:hover { color: var(--brand); }
.site-header__actions { display: flex; align-items: center; gap: 24px; font-size: 16px; font-weight: 700; }

.site-header__toggle {
	display: none; margin-left: auto;
	width: 44px; height: 44px; padding: 11px 10px;
	background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
	flex-direction: column; justify-content: space-between;
}
.site-header__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }

@media (max-width: 1080px) {
	.site-header__toggle { display: flex; }
	.site-header__inner { flex-wrap: wrap; }
	.site-header__menu {
		display: none; flex-basis: 100%;
		flex-direction: column; align-items: stretch; gap: 20px; padding: 8px 0 12px;
	}
	.site-header.is-open .site-header__menu { display: flex; }
	.site-nav { flex-direction: column; gap: 0; }
	.site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.site-header__actions { justify-content: space-between; }
	.site-header.is-open .site-header__toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
	.site-header.is-open .site-header__toggle span:nth-child(2) { opacity: 0; }
	.site-header.is-open .site-header__toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--footer); color: var(--footer-ink); }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }
.site-footer__inner { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.site-footer__about { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex: 2 1 320px; max-width: 460px; font-size: 15px; line-height: 1.65; }
.site-footer__about img { height: 34px; width: auto; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; flex: 1 1 140px; }
.site-footer__col h2 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: #fff; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a {
	width: 38px; height: 38px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .06); border: 1px solid var(--footer-line);
	transition: background-color .15s, color .15s;
}
.social-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.site-footer__bottom {
	border-top: 1px solid var(--footer-line); padding-top: 24px;
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.site-footer__badges { display: flex; align-items: center; gap: 16px; }
.site-footer__badges img { height: 36px; width: auto; opacity: .9; }

/* ---------- Sections ---------- */

.section { padding-top: 72px; padding-bottom: 72px; }

/* Hero */
.hero { background: var(--surface-tint); position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; right: -160px; top: 60px;
	width: 820px; height: 640px; border-radius: 50%;
	/* A soft light that drifts across the circle, on top of the circle's own colour */
	background:
		radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)) 0 0 / 60% 60% no-repeat,
		var(--brand-soft);
	animation: hero-blob 18s ease-in-out infinite, hero-shine 11s ease-in-out infinite;
}
/* The circle slowly breathes and wobbles */
@keyframes hero-blob {
	0%, 100% { border-radius: 50%; transform: translate(0, 0) rotate(0deg); }
	33% { border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; transform: translate(-18px, 10px) rotate(4deg); }
	66% { border-radius: 54% 46% 48% 52% / 47% 55% 45% 53%; transform: translate(12px, -12px) rotate(-3deg); }
}
@keyframes hero-shine {
	0%, 100% { background-position: 15% 20%, 0 0; }
	50% { background-position: 85% 75%, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hero::before { animation: none; }
}
.hero__inner {
	position: relative;
	padding-top: 88px; padding-bottom: 96px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr));
	gap: 56px 32px; align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero__copy .btn-row { padding-top: 6px; }
.hero__video { padding: 12px 24px 12px 14px; font-size: 18px; border-radius: 14px; gap: 12px; }
.hero__providers { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; }
.hero__providers-label { font-size: 14px; font-weight: 700; color: var(--muted); }

.logo-row { display: flex; gap: 12px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.logo-row img { height: 46px; width: auto; border-radius: 9px; }
.logo-row__note { align-self: center; font-size: 14px; font-weight: 700; color: var(--muted); padding-left: 4px; }
.logo-row a { display: block; border-radius: 9px; transition: transform .15s, box-shadow .15s; }
.logo-row a:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(40, 30, 90, .5); }

/* Hero illustration: Google Form + Payable checkout, drawn in HTML so it stays crisp and light */
.mock { position: relative; height: 560px; width: 100%; max-width: 700px; justify-self: center; }
.mock__form {
	position: absolute; left: 0; top: 40px; width: 330px; max-width: 56%;
	background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 24px 50px -24px rgba(40, 30, 90, .35);
	font-family: Arial, sans-serif;
}
.mock__form-bar { padding: 16px 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eee; font-size: 18px; color: #3c4043; }
.mock__form-bar::before { content: ""; width: 22px; height: 28px; border-radius: 3px; background: #673ab7; }
.mock__form-body { background: #f0ebf8; padding: 16px; }
.mock__card { background: #fff; border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.mock__card + .mock__card { margin-top: 10px; }
.mock__card--title { border-top: 8px solid #673ab7; padding: 16px 18px; gap: 4px; }
.mock__title { font-size: 20px; color: #202124; }
.mock__sub { font-size: 12px; color: #5f6368; }
.mock__field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #202124; }
.mock__line { height: 1px; background: #dadce0; margin-top: 14px; }
.mock__select { border: 1px solid #dadce0; border-radius: 4px; padding: 8px 10px; display: flex; justify-content: space-between; }
.mock__submit { margin-top: 12px; display: inline-block; background: #673ab7; color: #fff; font-size: 13px; padding: 9px 20px; border-radius: 4px; }

.mock__badge {
	position: absolute; left: 35%; top: 440px; z-index: 2;
	background: #fff; border-radius: 16px; padding: 12px 18px;
	box-shadow: 0 14px 30px -12px rgba(40, 30, 90, .4);
}
.mock__badge img { height: 28px; width: auto; }

.mock__checkout {
	position: absolute; right: 0; top: 0; width: 340px; max-width: 56%;
	background: #fff; border-radius: 18px; padding: 22px;
	box-shadow: 0 30px 60px -24px rgba(40, 30, 90, .45);
	display: flex; flex-direction: column; gap: 14px;
}
.mock__checkout-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.mock__checkout-head img { height: 22px; width: auto; }
.mock__item { display: flex; gap: 14px; align-items: center; }
.mock__thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; background: repeating-linear-gradient(135deg, #e7e0f8 0 6px, #f3effc 6px 12px); }
.mock__item-name { display: block; font-weight: 800; font-size: 16px; }
.mock__item-price { display: block; font-weight: 900; font-size: 20px; }
.mock__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); border-top: 1px solid #eef0f4; padding-top: 12px; }
.mock__row strong { color: var(--ink); }
.mock__express { background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; text-align: center; padding: 12px; border-radius: 8px; }
.mock__or { font-size: 11px; color: #8a97a8; text-align: center; }
.mock__input { border: 1px solid #dfe3ea; border-radius: 8px; padding: 11px 12px; font-size: 13px; color: #8a97a8; }
.mock__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock__pay { background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; text-align: center; padding: 13px; border-radius: 8px; }

@media (max-width: 640px) {
	.mock { height: 500px; }
	.mock__form { top: 90px; max-width: 64%; }
	.mock__checkout { max-width: 64%; padding: 16px; }
	.mock__badge { top: 430px; left: 20%; }
}

/* Page hero (inner pages) */
.page-hero {
	background: linear-gradient(180deg, var(--surface-tint) 0%, #fff 100%);
	border-bottom: 1px solid var(--line);
}
.page-hero__inner {
	padding-top: 88px; padding-bottom: 72px;
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.page-hero .h1 { font-size: clamp(40px, 5vw, 62px); max-width: 16em; }
.page-hero .lead { max-width: 34em; }
.page-hero .btn-row { justify-content: center; padding-top: 8px; }

/* Spacing when the video band follows the features divider (products page) */
.features + .video-band { margin-top: 72px; }
.video-band + .cta-band { padding-top: 72px; }

/* Product family */
.family { background: var(--surface-grey); border-top: 1px solid var(--line-grey); }
.family__inner { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.family__intro { flex: 1 1 280px; }
.family__intro .body { font-size: 19px; line-height: 1.55; max-width: 30em; }
.family__cards { flex: 1 1 800px; min-width: 0; --min: 220px; }

.product-card {
	background: #fff; border: 1px solid #e3ebe6; border-radius: var(--radius); padding: 24px;
	display: flex; flex-direction: column; gap: 16px;
	box-shadow: 0 14px 30px -24px rgba(18, 25, 33, .3);
}
.product-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.product-card__name { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 20px; font-weight: 900; white-space: nowrap; }
.product-card__icon {
	width: 40px; height: 40px; flex: none; border-radius: 10px;
	box-shadow: 0 0 0 1px rgba(23, 32, 43, .08);
}
.product-card p { font-size: 16px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.product-card .btn { align-self: flex-start; }

/* Features */
.features {
	padding-top: 96px; padding-bottom: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.features__head { grid-column: 1 / -1; margin-bottom: 28px; }
.features__head .body { max-width: 36em; }
/* Divider between these company-wide points and the product sections below. */
.features::after {
	content: ""; grid-column: 1 / -1; height: 1px; margin-top: 52px;
	background: var(--line-grey);
}
/* Three across, then straight to a single column (never a 2 + 1 layout). */
@media (max-width: 760px) {
	.features { grid-template-columns: 1fr; }
}
/* Neutral (not Forms purple) — these points are about Payable as a whole. */
.feature {
	display: flex; flex-direction: column; gap: 10px;
	background: #f7f8fa; border: 1px solid var(--line-grey); border-radius: var(--radius); padding: 30px;
}
.feature__icon {
	width: 48px; height: 48px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
}
.feature__icon--blue { background: #e5f2ff; color: var(--blue); }
.feature__icon--teal { background: #dcf5f1; color: #0f8f7e; }
.feature__icon--amber { background: #fdf0d9; color: #c76b00; }
.feature h3 { margin-top: 10px; }
.feature p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* Product showcase (Forms / Sheets) */
.showcase__shot { display: block; background: var(--brand-tint); border-radius: var(--radius-lg); padding: 28px 20px 12px; }
.showcase__shot--green { background: var(--green-tint); }
.showcase__shot img { width: 100%; }
.showcase__shot--banner { padding: 0; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(103, 65, 217, .55); }
.showcase__shot--banner-green { box-shadow: 0 30px 60px -30px rgba(11, 138, 62, .55); }
.showcase .btn-row { padding-top: 6px; }
/* App-store style badge for Google Workspace Marketplace installs */
.btn-market {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 10px 20px 10px 14px; border-radius: 14px;
	background: var(--ink); color: #fff; line-height: 1.2;
	box-shadow: 0 12px 24px -14px rgba(23, 32, 43, .7);
	transition: background-color .15s, transform .15s;
}
.btn-market:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn-market img { width: 30px; height: 30px; flex: none; }
.btn-market__sup { display: block; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.btn-market__sup strong { font-weight: 800; color: #fff; }
.btn-market__title { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; }
@media (max-width: 360px) { .btn-market__title { white-space: normal; } }
.showcase--last { padding-bottom: 96px; }

/* Video */
.video-band { padding: 0 var(--gutter); }
/* When the video band is the last thing on the page (/start, /help, promos), keep it off the footer. */
main > .video-band:last-child { padding-bottom: 96px; }
@media (max-width: 760px) { main > .video-band:last-child { padding-bottom: 56px; } }
.video-band__inner {
	max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto;
	background: var(--dark); color: #fff; border-radius: var(--radius-xl);
	padding: 64px clamp(24px, 5vw, 72px);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: center;
}
.video-band .eyebrow { color: #b9a6f5; }
.video-band .body { color: #d6d0ea; }
.video-links { display: flex; flex-direction: column; gap: 12px; }
.video-link {
	display: flex; align-items: center; gap: 18px;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 18px; padding: 18px 22px; color: #fff;
}
.video-link:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.video-link__title { display: block; font-size: 18px; font-weight: 800; }
.video-link__meta { display: block; font-size: 14px; color: var(--footer-ink); font-weight: 600; }

/* Testimonials */
.testimonials { padding-top: 104px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.testimonials__grid { --min: 320px; }
.review {
	display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
	border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff;
}
.review__stars { color: #f5a524; font-size: 18px; letter-spacing: 2px; }
.review blockquote { font-size: 18px; line-height: 1.5; font-weight: 700; text-wrap: pretty; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.review__name { display: block; font-size: 15px; font-weight: 800; color: var(--ink-nav); }
.review__date { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }

/* CTA */
.cta-band { padding: 0 var(--gutter) 96px; }
.cta-band__inner {
	max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto;
	background: var(--brand); color: #fff; border-radius: var(--radius-xl); padding: 72px 24px;
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
/* The shared "Ready to get paid?" band is for all of Payable, not just Forms, so it uses the universal blue. */
.cta-band--blue .cta-band__inner { background: var(--blue); }
.cta-band--blue .btn--white { color: var(--blue-hover); }
.cta-band--blue .btn--white:hover { background: #e5f2ff; color: var(--blue-hover); }
.cta-band h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.025em; font-weight: 900; }
.cta-band p { font-size: 19px; font-weight: 600; }
.cta-band .btn-row { justify-content: center; margin-top: 10px; }
.cta-band .btn { font-size: 17px; padding: 16px 28px; border-radius: 14px; }
.cta-band__google { min-width: 240px; min-height: 44px; }

@media (max-width: 640px) {
	:root { --gutter: 16px; }
	.hero__inner { padding-top: 56px; padding-bottom: 64px; }
	.page-hero__inner { padding-top: 56px; padding-bottom: 48px; }
	.features + .video-band { margin-top: 48px; }
	.video-band + .cta-band { padding-top: 48px; }
	.band + .cta-band { padding-top: 48px; }
	.band + .video-band { margin-top: 48px; }
	.video-band + .band { margin-top: 48px; }
	.lead { font-size: 18px; }
	.family__inner, .testimonials { padding-top: 64px; padding-bottom: 64px; }
	.features { padding-top: 64px; }
	.features::after { margin-top: 32px; }
	.section { padding-top: 48px; padding-bottom: 48px; }
	.video-band__inner, .cta-band__inner { padding-top: 48px; padding-bottom: 48px; border-radius: 24px; }
	.btn--lg { font-size: 17px; padding: 16px 24px; }
}

/* ---------- Product landing pages (e.g. google-forms-add-on.php) ---------- */

.hero__image { justify-self: center; width: 100%; max-width: 680px; }
.hero__image img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px var(--brand-glow); }
.hero__signin { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--muted); }

.feature__icon--brand { background: var(--brand-soft); color: var(--brand); }

/* Two big value points side by side */
.value-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 56px; }
.value-point { display: flex; gap: 20px; align-items: flex-start; }
.value-point .feature__icon { flex: none; }

/* Numbered setup steps */
/* Full-width tinted band to alternate with white sections. Put a .container inside. */
.band--tint { background: var(--brand-tint); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.band--tint .faq__item, .band--tint .sample-card { border-color: var(--band-line); }
.band--tint .feature { background: #fff; border-color: var(--band-line); }
.band + .cta-band { padding-top: 72px; }
.band + .video-band { margin-top: 72px; }
.video-band + .band { margin-top: 72px; }
.setup .step { border-color: var(--band-line); box-shadow: 0 10px 24px -20px var(--brand-glow); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.step {
	counter-increment: step; position: relative;
	background: #fff; border: 1px solid var(--line); border-radius: 16px;
	padding: 18px 20px 18px 72px; display: flex; flex-direction: column; gap: 2px;
}
.step::before {
	content: counter(step); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
	width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
	display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px;
}
.step__title { font-weight: 800; font-size: 17px; }
.step__text { font-size: 15px; color: var(--ink-2); }

/* Generic 3-up card grid: three across, then one column (never 2 + 1). */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .card-grid-3 { grid-template-columns: 1fr; } }

/* Video band variant: heading on top, video cards below */
.video-band__inner--stacked { grid-template-columns: 1fr; }
.video-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .video-cards { grid-template-columns: 1fr; } }
.video-card { display: flex; flex-direction: column; gap: 12px; color: #fff; }
.video-card:hover { color: #fff; }
.video-card__thumb { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; opacity: .9; }
.video-card:hover .video-card__thumb img { transform: scale(1.04); opacity: 1; }
.video-card__thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.video-card__title { font-size: 17px; font-weight: 800; }
.video-card--feature .video-card__thumb { border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.video-card--feature .play { width: 72px; height: 72px; }
.video-card--feature .play::before { margin-left: 6px; border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; }

/* Checkout screenshots: grid on desktop, swipeable row on small screens */
.shots { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.shot { display: flex; flex-direction: column; gap: 12px; }
/* Every screenshot sits in the same-size tile so the captions line up. */
.shot a {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 9 / 15; padding: 12px;
	background: var(--surface-tint); border: 1px solid var(--line); border-radius: 16px;
	transition: transform .2s, box-shadow .2s;
}
.shot__frame {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 9 / 15; padding: 12px;
	background: var(--surface-tint); border: 1px solid var(--line); border-radius: 16px;
}
.shot a:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -26px rgba(40, 30, 90, .45); }
.shot a img { width: 100%; height: 100%; object-fit: contain; }
.shot__caption { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.35; }
.shot__num {
	flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
	font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 1080px) {
	.shots {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
		margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
		padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: var(--gutter);
	}
	.shot { flex: 0 0 200px; scroll-snap-align: start; }
}

/* Sample forms */
.samples__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.samples__head .stack { max-width: 40em; }
.samples__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-top: 36px; }
.sample-card {
	display: flex; flex-direction: column; background: #fff; color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.sample-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(40, 30, 90, .45); }
.sample-card__thumb { display: block; aspect-ratio: 4 / 3; background: var(--brand-tint); overflow: hidden; }
.sample-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sample-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 20px; }
.sample-card__title { font-size: 18px; font-weight: 800; }

/* FAQ */
.faq__list { max-width: 820px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq__item summary {
	list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
	font-size: 17px; font-weight: 800;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
	font-size: 24px; font-weight: 600; color: var(--brand); transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0; padding: 0 22px 20px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.faq__more { text-align: center; margin-top: 24px; color: var(--ink-2); }

/* Spacing when a CTA band follows a regular section */
.section + .cta-band { padding-top: 24px; }

/* ---------- Use cases page ---------- */

.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 8px; }
.chip {
	display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
	background: #fff; border: 1px solid var(--brand-line); color: var(--ink); font-size: 15px; font-weight: 700;
	transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip--green { border-color: #bfe3cb; color: #0b7a34; }
.chip--green:hover { border-color: #0b8a3e; color: #0b8a3e; background: #f7fbf8; }

/* Featured guide cards */
.guide-card {
	display: flex; flex-direction: column; background: #fff; color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.guide-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(40, 30, 90, .45); }
.guide-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--brand-tint); }
.guide-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.guide-card:hover .guide-card__img img { transform: scale(1.04); }
.guide-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.guide-card .badge { background: color-mix(in srgb, var(--cat-color, var(--brand)) 14%, #fff); color: color-mix(in srgb, var(--cat-color, var(--brand)) 72%, #000); }
.guide-card__title { font-size: 21px; font-weight: 900; line-height: 1.25; }
.guide-card__text { font-size: 16px; line-height: 1.55; color: var(--ink-2); flex: 1; }

/* Industry cards: 4 / 2 / 1 across so 8 cards never leave an orphan row */
.usecase-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
@media (max-width: 1180px) { .usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--band-line);
	border-radius: var(--radius); overflow: hidden; scroll-margin-top: 96px;
}
.usecase-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.usecase-card__body { border-top: 4px solid var(--cat-color, var(--brand)); }
.usecase-card__links a::before { color: var(--cat-color, var(--muted)); }
.usecase-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.usecase-card__body > p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.usecase-card__links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.usecase-card__links a { font-size: 15px; font-weight: 700; display: inline-flex; gap: 8px; align-items: baseline; }
.usecase-card__links a::before { content: "›"; color: var(--muted); }
.usecase-card__more { margin-top: 6px; }
#payable-sheets-uses { scroll-margin-top: 80px; }

/* ---------- More ways to use Payable Forms (subscriptions, invoice on the go) ---------- */

.more-ways__row { margin-top: 56px; }
.more-ways__row + .more-ways__row { margin-top: 88px; }
.more-ways__title { font-size: clamp(28px, 3vw, 36px); }
@media (min-width: 981px) { .more-ways__row--flip > .stack { order: 2; } }
.more-ways__note { font-size: 13px; color: var(--muted); }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236741d9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Google-Form-style answer list showing the price formats */
.gform-mock {
	justify-self: center; width: 100%; max-width: 520px; background: #fff; border-radius: 18px;
	border-top: 10px solid #673ab7; box-shadow: 0 30px 60px -30px var(--brand-glow), 0 0 0 1px var(--line);
	padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 18px;
}
.gform-mock__head { display: flex; flex-direction: column; gap: 4px; }
.gform-mock__title { font-size: 20px; font-weight: 800; }
.gform-mock__sub { font-size: 14px; color: var(--muted); }
.gform-mock__options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gform-mock__options li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.gform-mock__options li.is-selected { background: var(--brand-tint); }
.gform-mock__options code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 700;
	background: var(--brand-soft); color: var(--brand-hover); padding: 3px 8px; border-radius: 6px;
}
.gform-mock__radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9aa0a6; }
.is-selected .gform-mock__radio { border-color: #673ab7; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px #673ab7; }
.gform-mock__result {
	display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
	border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; font-weight: 700; color: var(--ink-2);
}

/* Phone filling out a form and sending a payment request */
.phone-mock { justify-self: center; position: relative; width: 100%; max-width: 300px; padding-bottom: 40px; }
.phone-mock__screen {
	display: flex; flex-direction: column; gap: 8px; background: #fff;
	border: 10px solid var(--ink); border-radius: 36px; padding: 26px 20px 22px;
	box-shadow: 0 40px 70px -35px var(--brand-glow);
}
.phone-mock__title { font-size: 18px; font-weight: 900; margin-bottom: 6px; padding-bottom: 10px; border-bottom: 6px solid #673ab7; }
.phone-mock__label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.phone-mock__input { font-size: 14px; border-bottom: 1.5px solid #673ab7; padding: 4px 0 6px; }
.phone-mock__check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.phone-mock__check::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 4px; border: 2px solid #9aa0a6; }
.phone-mock__check.is-on::before {
	border-color: #673ab7; background: #673ab7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.phone-mock__submit { align-self: flex-start; margin-top: 10px; background: #673ab7; color: #fff; font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 6px; }
.phone-mock__email {
	position: absolute; left: -36px; right: -36px; bottom: 0; display: flex; align-items: center; gap: 12px;
	background: #fff; border-radius: 16px; padding: 14px 16px; font-size: 13px; color: var(--ink-2);
	box-shadow: 0 18px 40px -16px rgba(23, 32, 43, .35);
}
.phone-mock__email strong { display: block; color: var(--ink); font-size: 14px; }
.phone-mock__email-icon {
	flex: none; width: 38px; height: 38px; border-radius: 10px; background: #dff3e6; color: #0b8a3e;
	display: flex; align-items: center; justify-content: center; font-size: 20px;
}
@media (max-width: 640px) { .phone-mock__email { left: -8px; right: -8px; } }

/* ---------- Pricing page ---------- */

.pricing-currency { font-size: 14px; font-weight: 700; color: var(--muted); }

/* Three tiers: three across, then one column (never 2 + 1) */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier {
	--accent: var(--brand); --accent-soft: var(--brand-soft);
	position: relative; display: flex; flex-direction: column; gap: 8px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px;
	border-top: 6px solid var(--accent); box-shadow: 0 24px 44px -34px rgba(40, 30, 90, .45);
}
/* Tier colours. Compound selectors so they win over the purple defaults set on .fee-row and .calc-result. */
.tier--green, .fee-row.tier--green, .calc-result.tier--green { --accent: #0b8a3e; --accent-soft: #dff3e6; }
.tier--blue, .fee-row.tier--blue, .calc-result.tier--blue { --accent: var(--blue); --accent-soft: #e5f2ff; }
.tier__name { font-size: 15px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tier__range { align-self: flex-start; font-size: 14px; font-weight: 800; color: var(--ink-2); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }
.tier__price { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tier__price span { font-size: clamp(48px, 5vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.tier__price small { font-size: 16px; font-weight: 700; color: var(--muted); }
.tier__text { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.tiers__note { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.pricing-detail .tiers__note { text-align: left; margin-top: 0; }

/* Worked example table */
.fee-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--band-line); border-radius: 16px; overflow: hidden; font-size: 17px; }
.fee-table th { text-align: left; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 20px; background: #fbfaff; border-bottom: 1px solid var(--band-line); }
.fee-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table td:last-child, .fee-table th:last-child { text-align: right; }
.fee-free { color: #0b8a3e; }
/* Colour each example row by its tier (same colours as the tier cards) */
.fee-row { --accent: var(--brand); --accent-soft: var(--brand-soft); }
.fee-table .fee-row td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.tier-tag { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.fee-model { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@media (max-width: 480px) { .fee-table th, .fee-table td { padding: 12px 12px; } .fee-model { display: block; margin-top: 4px; } }
.pricing-callout {
	display: flex; flex-direction: column; gap: 8px;
	background: #fff; border: 1px solid var(--band-line); border-left: 4px solid var(--brand);
	border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.55; color: var(--ink-2);
}
.pricing-callout strong { color: var(--ink); }

.included { background: #fff; border: 1px solid var(--band-line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---------- Cost calculator ---------- */

.calc-form {
	width: 100%; max-width: 760px; margin-top: 12px;
	display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 14px; align-items: end; text-align: left;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
	box-shadow: 0 30px 60px -40px var(--brand-glow);
}
@media (max-width: 760px) { .calc-form { grid-template-columns: 1fr; } }
.calc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calc-field__label { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.calc-field select, .calc-field input {
	width: 100%; height: 56px; padding: 0 16px; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink);
	background: #fff; border: 1.5px solid var(--brand-line); border-radius: 12px; outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.calc-field select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236987ab' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.calc-field select:focus, .calc-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.calc-form__submit { height: 56px; }

.calc-result {
	--accent: var(--brand); --accent-soft: var(--brand-soft);
	max-width: 760px; margin: 0 auto; scroll-margin-top: 96px;
	background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius);
	box-shadow: 0 30px 60px -40px rgba(40, 30, 90, .45); overflow: hidden;
}
.calc-result__main { padding: 32px 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.calc-result__fee { font-size: clamp(52px, 7vw, 76px); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.calc-result__per { font-size: 15px; font-weight: 700; color: var(--muted); }
.calc-result__rows { margin: 0; padding: 0 32px; }
.calc-result__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.calc-result__rows dt { color: var(--ink-2); }
.calc-result__rows dd { margin: 0; font-weight: 800; white-space: nowrap; }
.calc-result__total dt, .calc-result__total dd { color: var(--ink); font-weight: 900; }
.calc-result__notes { margin-top: 8px; padding: 18px 32px 24px; background: var(--surface-tint); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.calc-result__notes strong { color: var(--ink); }
@media (max-width: 640px) {
	.calc-result__main { padding: 26px 20px 18px; }
	.calc-result__rows { padding: 0 20px; }
	.calc-result__notes { padding: 16px 20px 20px; }
}

/* ---------- How-to guide pages ---------- */

.hero__image--portrait { max-width: 420px; }
.howto-jump { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.howto-jump a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-nav); }
.howto-jump a:hover { color: var(--brand); }
.howto-jump span {
	flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900;
}

.howto { display: flex; flex-direction: column; gap: 128px; }
.howto-step { position: relative; scroll-margin-top: 96px; }
/* Horizontal divider between steps, centred in the gap */
.howto-step + .howto-step::before {
	content: ""; position: absolute; left: 0; right: 0; top: -64px; height: 1px; background: var(--line-grey);
}
@media (min-width: 981px) { .howto-step--flip > .stack { order: -1; } }
.howto-step__img {
	display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
	box-shadow: 0 30px 60px -36px var(--brand-glow); transition: transform .2s;
}
.howto-step__img:hover { transform: translateY(-4px); }
.howto-step__img img { width: 100%; }
.howto-step__num {
	align-self: flex-start; font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
	color: #fff; background: var(--brand); padding: 6px 14px; border-radius: 999px;
}
.howto-step .stack p.body + p.body { margin-top: -4px; }
@media (max-width: 640px) {
	.howto { gap: 96px; }
	.howto-step + .howto-step::before { top: -48px; }
}

/* Animated mock of the add-on's "Make this form Payable" switch (how-to page, step 2) */
.toggle-mock {
	align-self: flex-start; display: inline-flex; flex-direction: column; gap: 10px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
	box-shadow: 0 14px 30px -20px rgba(40, 30, 90, .4);
	animation: toggle-mock-glow 5s ease-in-out infinite;
}
.toggle-mock__label { font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: 700; color: #202124; }
.toggle-mock__switch {
	position: relative; width: 110px; height: 38px; border: 2px solid #007cd1; border-radius: 7px; overflow: hidden;
	background: #e8eaed; animation: toggle-mock-track 5s ease-in-out infinite;
}
.toggle-mock__yes, .toggle-mock__no {
	position: absolute; top: 0; bottom: 0; display: flex; align-items: center;
	font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: 700;
}
.toggle-mock__yes { left: 0; width: 70px; justify-content: center; color: #fff; animation: toggle-mock-yes 5s ease-in-out infinite; }
.toggle-mock__no { right: 0; width: 70px; justify-content: center; color: #5f6368; animation: toggle-mock-no 5s ease-in-out infinite; }
.toggle-mock__knob {
	position: absolute; top: 3px; bottom: 3px; left: 3px; width: 32px; border-radius: 5px; background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3); animation: toggle-mock-knob 5s ease-in-out infinite;
}
/* 0–35% off, quick flip, 45–90% on, then back to off */
@keyframes toggle-mock-track { 0%, 35% { background: #e8eaed; } 45%, 90% { background: #007cd1; } 100% { background: #e8eaed; } }
@keyframes toggle-mock-knob { 0%, 35% { left: 3px; transform: scale(1); } 40% { transform: scale(.9); } 45%, 90% { left: 71px; transform: scale(1); } 100% { left: 3px; } }
@keyframes toggle-mock-yes { 0%, 38% { opacity: 0; } 45%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes toggle-mock-no { 0%, 35% { opacity: 1; } 42%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes toggle-mock-glow {
	0%, 40% { box-shadow: 0 14px 30px -20px rgba(40, 30, 90, .4), 0 0 0 0 rgba(255, 196, 0, 0); }
	50%, 85% { box-shadow: 0 14px 30px -20px rgba(40, 30, 90, .4), 0 0 0 6px rgba(255, 196, 0, .35); }
	100% { box-shadow: 0 14px 30px -20px rgba(40, 30, 90, .4), 0 0 0 0 rgba(255, 196, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.toggle-mock, .toggle-mock__switch, .toggle-mock__yes, .toggle-mock__no, .toggle-mock__knob { animation: none; }
	.toggle-mock__switch { background: #007cd1; }
	.toggle-mock__knob { left: 71px; }
	.toggle-mock__no { opacity: 0; }
}

/* Animated mock of the add-on's Test Mode dropdown (how-to page, step 3): practice -> real money */
.testmode-mock {
	align-self: flex-start; width: 100%; max-width: 300px; display: flex; flex-direction: column;
	border-radius: 10px; overflow: visible; font-family: Arial, Helvetica, sans-serif;
	box-shadow: 0 14px 30px -20px rgba(40, 30, 90, .45), 0 0 0 1px rgba(0, 0, 0, .06);
}
.testmode-mock__head { background: #0098f4; color: #fff; font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 10px 10px 0 0; }
.testmode-mock__body {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 16px;
	border-radius: 0 0 10px 10px; background: #fff3cf; animation: testmode-bg 6s ease-in-out infinite;
}
.testmode-mock__label { font-size: 17px; color: #333; }
.testmode-mock__select {
	position: relative; display: block; height: 40px; border-radius: 7px; background: #efefef; border: 1px solid #d6d6d6;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08); animation: testmode-press 6s ease-in-out infinite;
}
.testmode-mock__on, .testmode-mock__off {
	position: absolute; inset: 0 34px 0 0; display: flex; align-items: center; justify-content: center;
	font-size: 14px; font-weight: 700; color: #222;
}
.testmode-mock__on { animation: testmode-on 6s ease-in-out infinite; }
.testmode-mock__off { opacity: 0; animation: testmode-off 6s ease-in-out infinite; }
.testmode-mock__chev {
	position: absolute; right: 8px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
	background: #c9c9c9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.testmode-mock__menu {
	position: absolute; left: 14px; right: 14px; top: calc(100% - 18px); z-index: 2;
	display: flex; flex-direction: column; background: #fff; border: 1px solid #d6d6d6; border-radius: 7px;
	box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .35); overflow: hidden;
	opacity: 0; transform: translateY(-6px); pointer-events: none; animation: testmode-menu 6s ease-in-out infinite;
}
.testmode-mock__menu span { padding: 9px 12px; font-size: 14px; color: #222; }
.testmode-mock__menu .is-picked { background: #1a73e8; color: #fff; }
/* 0–25% practice (yellow) · 28–44% menu open · 48–92% real money (green) · back to practice */
@keyframes testmode-bg { 0%, 44% { background: #fff3cf; } 50%, 92% { background: #d7ebd5; } 100% { background: #fff3cf; } }
@keyframes testmode-press { 0%, 24% { transform: scale(1); } 27% { transform: scale(.97); } 30%, 100% { transform: scale(1); } }
@keyframes testmode-menu { 0%, 27% { opacity: 0; transform: translateY(-6px); } 31%, 42% { opacity: 1; transform: translateY(0); } 46%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes testmode-on { 0%, 44% { opacity: 1; } 47%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes testmode-off { 0%, 44% { opacity: 0; } 47%, 94% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.testmode-mock__body, .testmode-mock__select, .testmode-mock__menu, .testmode-mock__on, .testmode-mock__off { animation: none; }
	.testmode-mock__body { background: #d7ebd5; }
	.testmode-mock__on { opacity: 0; }
	.testmode-mock__off { opacity: 1; }
}

/* ---------- Connect pages (integrate.php) ---------- */

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink-2); }

.integrate-lockup { display: flex; align-items: center; gap: 14px; }
.integrate-lockup img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 10px 24px -14px rgba(40, 30, 90, .5), 0 0 0 1px var(--line); }
.integrate-lockup span { font-size: 26px; font-weight: 800; color: var(--muted); }

.integrate-why__logo { max-height: 40px; width: auto; align-self: flex-start; }
.integrate-methods { background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.method-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.method { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 10px; text-align: center; }
.method__icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.method__icon img { width: 48px; height: 48px; object-fit: contain; }
.method__label { font-size: 14px; font-weight: 800; }

/* Four steps with this provider's screenshots: 4 / 2 / 1 across */
.integrate-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .integrate-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .integrate-steps { grid-template-columns: 1fr; } }
.integrate-step { position: relative; display: flex; flex-direction: column; gap: 16px; background: #fff; border: 1px solid var(--band-line); border-radius: var(--radius); padding: 14px 14px 22px; }
/* Every screenshot sits in the same fixed-size frame, whatever its own shape */
.integrate-step__img {
	position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
	background: var(--surface-tint); border-radius: 12px; transition: transform .2s;
}
.integrate-step__img:hover { transform: translateY(-3px); }
.integrate-step__img img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.integrate-step__num { position: absolute; top: 22px; left: 22px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff; }
/* Copy is pinned to the bottom so titles line up across the row */
.integrate-step__body { margin-top: auto; padding: 0 6px; display: flex; flex-direction: column; gap: 8px; min-height: 10.5em; }
.integrate-step .h3 { font-size: 18px; }
.integrate-step p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 600px) { .integrate-step__body { min-height: 0; } }
.integrate-resources { justify-content: center; margin-top: 32px; }

/* Countries & currencies lists */
.coverage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin-top: 36px; }
.coverage__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.coverage__card .h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.coverage__list { list-style: none; margin: 0; padding: 0 6px 0 0; max-height: 340px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; }
.coverage__list li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.coverage__list span { flex: none; width: 34px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }

/* Other providers */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 36px; }
.provider-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 700; text-align: center; transition: transform .2s, box-shadow .2s; }
.provider-card:hover { transform: translateY(-3px); color: var(--brand); box-shadow: 0 20px 36px -26px rgba(40, 30, 90, .45); }
.provider-card img { max-height: 36px; max-width: 150px; width: auto; object-fit: contain; }

/* ---------- Templates (templates.php, template.php) ---------- */

.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip[style*="--cat-color"]:not(.is-active):hover { border-color: var(--cat-color); color: var(--cat-color); }
.chip span { margin-left: 6px; font-size: 12px; font-weight: 800; opacity: .7; }
.templates-eyebrow { color: var(--cat-color, var(--brand)); }

.templates { display: flex; flex-direction: column; gap: 64px; }
.templates-group { scroll-margin-top: 96px; display: flex; flex-direction: column; gap: 22px; }
.templates-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line-grey); }
.templates-empty { text-align: center; padding: 40px 0; }

/* Template cards: 4 / 3 / 2 / 1 across */
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1180px) { .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .template-grid { grid-template-columns: 1fr; } }
.template-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
@media (max-width: 860px) { .template-grid--3 { grid-template-columns: 1fr; } }
.template-card {
	display: flex; flex-direction: column; background: #fff; color: var(--ink);
	border: 1px solid var(--line); border-top: 4px solid var(--cat-color, var(--brand)); border-radius: var(--radius); overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.template-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(40, 30, 90, .45); }
.template-card__thumb {
	display: block; aspect-ratio: 4 / 3; overflow: hidden;
	background: color-mix(in srgb, var(--cat-color, var(--brand)) 10%, #fff);
}
.template-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.template-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px 20px; flex: 1; }
.template-card .badge, .template-badge { background: color-mix(in srgb, var(--cat-color, var(--brand)) 14%, #fff); color: color-mix(in srgb, var(--cat-color, var(--brand)) 72%, #000); }
.template-card__title { font-size: 17px; font-weight: 800; line-height: 1.3; flex: 1; }

/* Template detail */
.template-title { font-size: clamp(36px, 4.4vw, 56px); }
.template-preview {
	justify-self: center; display: block; width: 100%; max-width: 520px; max-height: 620px; overflow: hidden;
	border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
	box-shadow: 0 40px 70px -40px rgba(40, 30, 90, .55); transition: transform .2s;
}
.template-preview:hover { transform: translateY(-4px); }
.template-preview img { width: 100%; height: auto; display: block; }
.template-description { display: flex; flex-direction: column; gap: 12px; }
.template-description p { margin: 0; }
.template-detail .included .logo-row img { height: 38px; }

/* ---------- Product themes ----------
   Wrap a page's <main> in .theme-sheets to swap the Forms purple for Sheets green.
   Everything built on the --brand* tokens follows automatically. */
.theme-sheets {
	--brand: #0b8a3e;
	--brand-hover: #08702f;
	--brand-soft: #dff3e6;
	--brand-tint: #eef8f1;
	--brand-line: #bfe3cb;
	--band-line: #d3ecdc;
	--brand-glow: rgba(11, 138, 62, .5);
	--surface-tint: #f7fbf8;
	--line: #e3efe7;
}

/* Placeholder tile for an image that hasn't been added yet */
.img-placeholder {
	width: 100%; height: 100%; border-radius: 10px;
	border: 2px dashed var(--brand-line); background: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	padding: 16px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700;
}
.img-placeholder svg { color: var(--brand); opacity: .6; }
.img-placeholder code { font-size: 10px; font-weight: 600; word-break: break-all; color: var(--muted); }

/* ---------- Video lightbox (js/payable.js) ---------- */

.video-lightbox {
	width: min(1100px, calc(100vw - 32px));
	max-width: none; max-height: none;
	padding: 0; border: 0; background: transparent; overflow: visible;
}
.video-lightbox::backdrop { background: rgba(23, 19, 31, .85); }
.video-lightbox__frame {
	position: relative; aspect-ratio: 16 / 9;
	background: #000; border-radius: 16px; overflow: hidden;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}
.video-lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lightbox__close {
	position: absolute; top: -48px; right: 0;
	width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .15); color: #fff;
	font-size: 28px; line-height: 1; cursor: pointer;
}
.video-lightbox__close:hover { background: rgba(255, 255, 255, .3); }
/* Image mode: size to the image instead of a 16:9 frame */
.video-lightbox.is-image { width: fit-content; max-width: calc(100vw - 32px); margin: auto; inset: 0; }
.video-lightbox.is-image .video-lightbox__frame { aspect-ratio: auto; background: transparent; box-shadow: none; }
.video-lightbox.is-image img { display: block; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 12px; }
/* Gallery controls */
.video-lightbox__nav, .video-lightbox__caption { display: none; }
.video-lightbox.is-gallery .video-lightbox__nav {
	display: flex; align-items: center; justify-content: center;
	position: fixed; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .16); color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
}
.video-lightbox.is-gallery .video-lightbox__nav:hover:not(:disabled) { background: rgba(255, 255, 255, .32); }
.video-lightbox.is-gallery .video-lightbox__nav:disabled { opacity: .3; cursor: default; }
.video-lightbox__nav--prev { left: 24px; }
.video-lightbox__nav--next { right: 24px; }
.video-lightbox.is-image .video-lightbox__caption:not(:empty) {
	display: block; margin: 12px 0 0; text-align: center; color: #fff; font-weight: 700; font-size: 15px;
}
.video-lightbox.is-image img { max-height: calc(100vh - 150px); }
@media (max-width: 640px) {
	.video-lightbox.is-gallery .video-lightbox__nav { top: auto; bottom: 16px; transform: none; width: 44px; height: 44px; }
	.video-lightbox__nav--prev { left: 16px; }
	.video-lightbox__nav--next { right: 16px; }
	.video-lightbox.is-image img { max-height: calc(100vh - 190px); }
}

/* ===== In-depth guides (school, sports, coach) — page_chunks/v2/guide.php ===== */
.guide-hero .hero__image img { aspect-ratio: 3 / 2; object-fit: cover; }
.guide-hero .hero__copy { gap: 20px; }
.guide-badge { align-self: flex-start; background: color-mix(in srgb, var(--cat-color, var(--brand)) 14%, #fff); color: color-mix(in srgb, var(--cat-color, var(--brand)) 72%, #000); }
.guide-highlights { padding-bottom: 96px; }
.guide-highlights::after { display: none; }
.guide-ideas__icon { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); }
.guide-steps__head { padding-top: 96px; }
.guide-steps .howto { padding-top: 64px; padding-bottom: 104px; }
.guide-steps + .band--tint .testimonials { padding-top: 88px; padding-bottom: 88px; }
.review__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-weight: 900; font-size: 14px; }
.guide-card--all { background: var(--brand-tint); justify-content: center; }
@media (max-width: 860px) {
	.card-grid-3.guide-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.card-grid-3.guide-ideas { grid-template-columns: 1fr; }
}
.guide-hero .h1 { font-size: clamp(36px, 4.2vw, 56px); }
.guide-hero .lead { font-size: 18px; }

/* ===== Legal pages (privacy policy, user agreement). The wording and its inline styles come
   straight from the Google Docs exports, so these rules only set type, spacing and colour. ===== */
.legal__inner { max-width: 860px; padding-top: 56px; padding-bottom: 104px; }
.legal__archived { margin-bottom: 28px; padding: 14px 18px; border-radius: 12px; background: #fff7e0; border: 1px solid #f3dfa6; color: #7a5600; font-size: 15px; font-weight: 700; }
.legal__archived a { color: inherit; text-decoration: underline; }
.legal__doc { font-size: 17px; line-height: 1.7; color: var(--ink-2); overflow-wrap: break-word; }
.legal__doc h1 { font-size: clamp(34px, 4.4vw, 50px); font-weight: 900; line-height: 1.1; color: var(--ink); margin: 0 0 18px; padding: 0; }
.legal__doc h2 { font-size: 26px; font-weight: 900; line-height: 1.25; color: var(--ink); margin: 44px 0 12px; padding: 24px 0 0; border-top: 1px solid var(--line-grey); }
.legal__doc h3 { font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); margin: 30px 0 8px; padding: 0; }
.legal__doc h4 { font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--ink); margin: 24px 0 6px; padding: 0; }
.legal__doc h1 span, .legal__doc h2 span, .legal__doc h3 span, .legal__doc h4 span { font-size: inherit; color: inherit; font-weight: inherit; }
.legal__doc p, .legal__doc li { line-height: 1.7; margin-bottom: 12px; }
.legal__doc span { font-family: inherit; }
.legal__doc a { color: var(--brand); text-decoration: underline; }
.legal__doc a:hover { color: var(--brand-hover); }

/* ===== Help & support ===== */
.help-options { margin-top: 0; }
.help-option { display: flex; flex-direction: column; align-items: flex-start; }
.help-option p { flex: 1; }
.help-option__link { margin-top: 6px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.help-articles__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.help-articles__list a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--band-line);
	font-weight: 800; color: var(--ink); transition: transform .2s, box-shadow .2s;
}
.help-articles__list a:hover { color: var(--brand); transform: translateY(-2px); box-shadow: 0 18px 30px -24px rgba(40, 30, 90, .45); }
.help-articles__list span { color: var(--brand); flex: none; }

/* ===== Sign in (/login) and Get started (/start) ===== */
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.pixel { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.signin { min-height: 52vh; }
.signin__card, .start-signin {
	display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 8px;
	padding: 28px 32px; border-radius: 20px; background: #fff; border: 1px solid var(--band-line);
	box-shadow: 0 30px 60px -40px var(--brand-glow); max-width: 440px; width: 100%;
}
.signin__card p { font-size: 15px; color: var(--ink-2); }
.signin__google, .start-signin .g_id_signin { min-height: 44px; }
.start-signin { padding: 22px 28px; }
.start-welcome {
	display: flex; align-items: center; gap: 18px; text-align: left; max-width: 640px;
	padding: 22px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--band-line);
	box-shadow: 0 30px 60px -40px var(--brand-glow);
}
.start-welcome img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.start-welcome p { font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.start-welcome__title { font-weight: 900; color: var(--ink) !important; font-size: 19px !important; }
.start-hero .promo-notice { text-align: left; max-width: 640px; }
.start-needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.start-needs .feature { gap: 12px; }
.start-needs__num { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-weight: 900; font-size: 18px; }
.start-providers { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.start-providers a { display: flex; align-items: center; gap: 14px; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid var(--line-grey); color: var(--ink-2); font-size: 15px; }
.start-providers a:hover { border-color: var(--brand); color: var(--ink); }
.start-providers img { width: 60px; height: auto; flex: none; }
.start-providers strong { color: var(--ink); margin-right: 6px; }
.start-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.start-app { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--band-line); }
.start-app__img { width: 100%; height: auto; background: var(--brand-tint); }
.start-app__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 26px 28px; }
.start-app__body p { color: var(--ink-2); }
.start-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.start-shots a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-grey); box-shadow: 0 20px 40px -30px rgba(40, 30, 90, .45); transition: transform .2s; }
.start-shots a:hover { transform: translateY(-3px); }
.start-shots img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
	.start-needs, .start-apps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.start-welcome { flex-direction: column; text-align: center; }
	.signin__card, .start-signin { padding: 22px 18px; }
}
/* Google Docs draws bullets as a "●" character at the text size; scale it back to a normal bullet. */
.legal__doc ul > li::before { font-size: .6em; vertical-align: .2em; }
/* Docs exports pad lists and sections with empty paragraphs; the spacing above already covers that. */
.legal__doc p:empty, .legal__doc p:has(> span:only-child:empty) { display: none; }
.legal__doc ul + ul, .legal__doc ol + ol { margin-top: -4px; }
.legal__doc ul, .legal__doc ol { margin-bottom: 12px; }
/* The Docs exports box some sections (e.g. Fees and Charges) in a single-cell table; restyle it as a soft callout. */
.legal__doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0 28px; }
.legal__doc td { width: auto; border: 1px solid var(--band-line); border-radius: 16px; background: var(--brand-tint); padding: 22px 26px; }
.legal__doc td > :last-child { margin-bottom: 0; }
.legal__doc td * { background-color: transparent !important; }
/* "Last updated …" is always the line right after the title: show it as a small date pill. */
.legal__doc h1 + p {
	display: inline-block; margin: 0 0 28px; padding: 6px 14px 6px 10px;
	border-radius: 999px; background: #f0f2f5; color: var(--ink-2);
	font-size: 14px; line-height: 1.4; font-weight: 800;
}
.legal__doc h1 + p::before {
	content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.legal__doc h1 + p span { font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ===== Partner promos (/promo/{name}) — page_chunks/v2/promo.php ===== */
.promo-hero .hero__copy { gap: 20px; }
.promo-lockup { display: flex; align-items: center; gap: 18px; }
.promo-lockup img { height: 40px; width: auto; }
.promo-lockup img + span + img { height: 56px; }
.promo-lockup span { font-size: 28px; font-weight: 300; color: var(--muted); }
.promo-badge { align-self: flex-start; }
.promo-badge--ended { background: #f0f2f5; color: var(--ink-2); }
.promo-body p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.promo-body p + p { margin-top: 10px; }
.promo-signin { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.promo-signin p { font-size: 15px; font-weight: 700; color: var(--muted); }
.promo-signin .g_id_signin { min-height: 44px; }
.promo-hero .promo-notice { color: var(--ink); }
.promo-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.promo-details .feature { gap: 12px; }
.promo-details__logo { width: 140px; height: auto; margin-top: 8px; }
.promo-about__img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.promo-videos__logo { display: inline-block; height: 1em; width: auto; vertical-align: -0.12em; margin-right: 6px; }
.video-band .promo-videos__logo { background: #fff; border-radius: 8px; padding: 4px 8px; height: 1.3em; box-sizing: content-box; vertical-align: -0.35em; }

/* ===== Share (/share) ===== */
.share { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.share__card { gap: 14px; }
.share__message {
	width: 100%; font: inherit; font-size: 15px; line-height: 1.55; color: var(--ink);
	padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-grey); background: #fff; resize: vertical;
}
