/* Thaimate landing — brand palette */

:root {
	/* Brand: navy · red · white */
	--tm-navy: #2c2a4a;
	--tm-red: #a51a31;
	--tm-white: #ffffff;

	--clb-color-primary: var(--tm-red);
	--clb-color-link-hover: #c42e48;
	--clb-border-radius: 16px;
	--clb-color-button: var(--tm-navy);
	--clb-infinit-scrolling-transition-duration: 0.6s;
	--clb-text-color: rgba(44, 42, 74, 0.88);
	--clb-text-light-mode-color: rgba(44, 42, 74, 0.88);
	--clb-title-font-family: "DM Sans", sans-serif;
	--clb-title-font-weight: 500;
	--clb-title-color: var(--tm-navy);
	--clb-subtitle-color: rgba(44, 42, 74, 0.72);

	/* Mapped layout tokens (pw-* used throughout CSS) */
	--pw-ink: var(--clb-title-color);
	--pw-ink-soft: var(--clb-text-color);
	--pw-muted: var(--clb-subtitle-color);
	--pw-line: rgba(44, 42, 74, 0.12);
	--pw-surface: #f4f3f7;
	--pw-white: var(--tm-white);
	--pw-teal: var(--clb-color-primary);
	--pw-teal-soft: rgba(165, 26, 49, 0.14);
	--pw-button: var(--clb-color-button);
	--pw-link-hover: var(--clb-color-link-hover);
	--pw-font: "DM Sans", system-ui, -apple-system, sans-serif;
	--pw-display: var(--clb-title-font-family);
	--pw-title-weight: var(--clb-title-font-weight);
	--pw-radius: var(--clb-border-radius);
	--pw-radius-lg: calc(var(--clb-border-radius) + 4px);
	--pw-radius-sm: calc(var(--clb-border-radius) - 4px);
	--pw-max: 68rem;
	--pw-content: 58rem;
	--pw-gutter: clamp(1.75rem, 6vw, 4.5rem);
	--pw-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--pw-nav-offset: 5.5rem;
}

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

html {
	scroll-behavior: smooth;
}

body.pw-landing {
	margin: 0;
	font-family: var(--pw-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--pw-ink);
	background: var(--pw-white);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.pw-skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 200;
	padding: 0.65rem 1rem;
	background: var(--pw-ink);
	color: #fff;
	border-radius: 999px;
	font-size: 0.875rem;
}

.pw-skip-link:focus {
	top: 1rem;
}

.pw-container {
	/* Align with header bar; rails stay on --pw-max. */
	width: min(100% - (var(--pw-gutter) * 2), var(--pw-content));
	margin-inline: auto;
}

/* Blueprint rails + section rules */

.pw-body {
	position: relative;
}

.pw-rail {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: #dbe0e6;
	pointer-events: none;
	z-index: 2;
}

.pw-rail--l {
	left: max(var(--pw-gutter), calc(50% - (var(--pw-max) / 2)));
}

.pw-rail--r {
	left: min(calc(100% - var(--pw-gutter)), calc(50% + (var(--pw-max) / 2)));
}

.pw-rule {
	position: relative;
	z-index: 3;
	height: 0;
	margin: 0;
	pointer-events: none;
}

.pw-rule__line {
	/* Full-bleed — padding sits outside the frame, like Aikeedo. */
	display: block;
	width: 100%;
	height: 1px;
	margin: 0;
	background: #dbe0e6;
}

.pw-rule__dot {
	position: absolute;
	top: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #c5cbd4;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 3px var(--pw-white);
}

.pw-rule__dot--l {
	left: max(var(--pw-gutter), calc(50% - (var(--pw-max) / 2)));
}

.pw-rule__dot--r {
	left: min(calc(100% - var(--pw-gutter)), calc(50% + (var(--pw-max) / 2)));
}

/* Buttons — pill */

.pw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	border: 1px solid transparent;
	transition: transform 0.2s var(--pw-ease), background 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	white-space: nowrap;
}

.pw-btn--sm {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}

.pw-btn--lg {
	padding: 0.95rem 1.5rem;
	font-size: 1rem;
}

.pw-btn--primary {
	background: var(--pw-button);
	color: #fff;
}

.pw-btn--primary:hover {
	background: var(--clb-color-primary);
	transform: translateY(-1px);
}

.pw-btn--secondary {
	background: #fff;
	border-color: var(--pw-line);
	color: var(--pw-ink);
}

.pw-btn--secondary:hover {
	border-color: var(--pw-link-hover);
	color: var(--clb-color-primary);
	transform: translateY(-1px);
}

/* Announcement bar */

.pw-announce {
	background: var(--pw-button);
	color: #f8e8ec;
	font-size: 0.8125rem;
	text-align: center;
}

.pw-announce__inner {
	width: min(100% - (var(--pw-gutter) * 2), var(--pw-content));
	margin-inline: auto;
	padding: 0.55rem 0;
}

.pw-announce a {
	color: #fff;
	font-weight: 500;
}

.pw-announce a:hover {
	text-decoration: underline;
}

/* Floating pill nav */

.pw-nav {
	position: sticky;
	top: 0.75rem;
	z-index: 50;
	padding: 0 var(--pw-gutter);
	pointer-events: none;
}

.pw-nav__shell {
	pointer-events: auto;
	width: min(100%, var(--pw-content));
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.45rem 0.5rem 0.45rem 1rem;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--pw-line);
	border-radius: 999px;
	box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
	backdrop-filter: blur(12px);
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.pw-nav.is-scrolled .pw-nav__shell {
	box-shadow: 0 14px 36px -16px rgba(15, 23, 42, 0.4);
	border-color: #d1d5db;
}

.pw-nav__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.pw-nav__mark {
	width: 26px;
	height: 26px;
}

.pw-nav__wordmark {
	font-family: var(--pw-display);
	font-size: 1.2rem;
	font-weight: var(--pw-title-weight);
	color: var(--clb-title-color);
	letter-spacing: -0.02em;
	line-height: 1;
}

.pw-nav__menu {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex: 1;
	justify-content: flex-end;
}

.pw-nav__links {
	display: flex;
	align-items: center;
	gap: 1.15rem;
}

.pw-nav__links a {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--pw-ink-soft);
}

.pw-nav__links a:hover {
	color: var(--clb-color-primary);
}

.pw-nav__toggle {
	display: none;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--pw-surface);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.pw-nav__burger,
.pw-nav__burger::before,
.pw-nav__burger::after {
	display: block;
	width: 1rem;
	height: 1.5px;
	background: var(--pw-ink);
	border-radius: 2px;
	position: relative;
}

.pw-nav__burger::before,
.pw-nav__burger::after {
	content: "";
	position: absolute;
	left: 0;
}

.pw-nav__burger::before {
	top: -5px;
}

.pw-nav__burger::after {
	top: 5px;
}

/* Hero — centered */

.pw-hero {
	position: relative;
	padding: 3.5rem 0 0;
	overflow: hidden;
	text-align: center;
}

.pw-hero__grid-bg {
	position: absolute;
	inset: 0 0 35% 0;
	background-color: #fff;
	background-image:
		linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(ellipse 70% 65% at 50% 20%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 20%, #000 20%, transparent 75%);
	pointer-events: none;
}

.pw-hero__grid-bg::before,
.pw-hero__grid-bg::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #cbd5e1;
	box-shadow:
		144px 144px 0 #e2e8f0,
		288px 72px 0 #e2e8f0,
		432px 216px 0 #cbd5e1,
		calc(100% - 160px) 96px 0 #e2e8f0,
		calc(100% - 80px) 240px 0 #cbd5e1;
}

.pw-hero__grid-bg::before {
	top: 18%;
	left: 18%;
}

.pw-hero__grid-bg::after {
	top: 28%;
	left: 12%;
	opacity: 0;
}

.pw-hero__content {
	position: relative;
	max-width: 46rem;
	padding-top: 1rem;
}

.pw-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 1.25rem;
	padding: 0.4rem 0.9rem 0.4rem 0.55rem;
	border-radius: 999px;
	background: var(--pw-surface);
	border: 1px solid var(--pw-line);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--pw-ink-soft);
}

.pw-pill__dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--pw-teal);
	box-shadow: 0 0 0 3px var(--pw-teal-soft);
}

.pw-hero__title {
	margin: 0 auto 1.1rem;
	max-width: 20ch;
	font-family: var(--pw-display);
	font-size: clamp(1.85rem, 3.8vw, 2.85rem);
	font-weight: var(--pw-title-weight);
	color: var(--clb-title-color);
	letter-spacing: -0.035em;
	line-height: 1.12;
}

.pw-hero__lead {
	margin: 0 auto 1.75rem;
	max-width: 38rem;
	font-size: 1.125rem;
	color: var(--pw-ink-soft);
}

.pw-hero__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 3rem;
}

.pw-hero__shot {
	position: relative;
	width: min(100% - (var(--pw-gutter) * 2), 42rem);
	margin: 0 auto;
	padding: 2.5rem 0 0;
}

/* Light chat prompt + fullscreen modal */
.tm-chat-stage {
	position: relative;
	z-index: 1;
	padding: 0 0.25rem 1.5rem;
}

.tm-chat-stage::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 45%;
	width: min(110%, 32rem);
	height: 14rem;
	transform: translate(-50%, -50%);
	background:
		radial-gradient(closest-side, rgba(165, 26, 49, 0.12), transparent 72%),
		radial-gradient(closest-side, rgba(44, 42, 74, 0.1), transparent 74%);
	filter: blur(24px);
	pointer-events: none;
	z-index: 0;
}

.tm-chat {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	width: 100%;
	padding: 1.15rem 1.2rem 1rem;
	border-radius: 1.5rem;
	background: var(--pw-white);
	border: 1px solid var(--pw-line);
	box-shadow:
		0 20px 48px -28px rgba(44, 42, 74, 0.35),
		0 1px 0 rgba(255, 255, 255, 0.8) inset;
	color: var(--pw-ink);
	text-align: left;
	font: inherit;
}

.tm-chat--preview {
	cursor: pointer;
	transition: border-color 0.2s var(--pw-ease), box-shadow 0.2s var(--pw-ease), transform 0.2s var(--pw-ease);
}

.tm-chat--preview:hover,
.tm-chat--preview:focus-visible {
	border-color: rgba(165, 26, 49, 0.35);
	box-shadow:
		0 24px 52px -26px rgba(44, 42, 74, 0.4),
		0 0 0 3px rgba(165, 26, 49, 0.1);
	transform: translateY(-2px);
	outline: none;
}

.tm-chat__preview-text {
	display: block;
	min-height: 4.5rem;
	font-size: 1.05rem;
	line-height: 1.45;
	color: rgba(44, 42, 74, 0.42);
	pointer-events: none;
}

.tm-chat__input {
	width: 100%;
	min-height: 4.5rem;
	resize: vertical;
	border: 0;
	outline: none;
	background: transparent;
	color: var(--pw-ink);
	font: inherit;
	font-size: 1.05rem;
	line-height: 1.5;
	padding: 0.15rem 0 0.5rem;
}

.tm-chat__input::placeholder {
	color: rgba(44, 42, 74, 0.38);
}

.tm-chat__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	pointer-events: none;
}

.tm-chat--modal .tm-chat__bar {
	pointer-events: auto;
}

.tm-chat__bar-left,
.tm-chat__bar-right {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tm-chat__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--pw-surface);
	color: var(--pw-ink-soft);
	cursor: pointer;
	transition: background 0.2s var(--pw-ease), color 0.2s var(--pw-ease);
}

.tm-chat--modal .tm-chat__icon-btn:hover {
	background: rgba(44, 42, 74, 0.1);
	color: var(--pw-ink);
}

.tm-chat__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	height: 2.25rem;
	padding: 0 0.9rem;
	border: 0;
	border-radius: 999px;
	background: var(--pw-surface);
	color: var(--pw-ink-soft);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s var(--pw-ease), color 0.2s var(--pw-ease);
}

.tm-chat--modal .tm-chat__pill:hover,
.tm-chat--modal .tm-chat__pill[aria-pressed="true"] {
	background: rgba(165, 26, 49, 0.1);
	color: var(--tm-red);
}

.tm-chat__create {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	height: 2.35rem;
	padding: 0 1.15rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #2c2a4a 0%, #a51a31 100%);
	color: #fff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 20px -10px rgba(165, 26, 49, 0.55);
	transition: filter 0.2s var(--pw-ease), transform 0.2s var(--pw-ease);
}

.tm-chat--modal .tm-chat__create:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.tm-chat-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--pw-white);
	color: var(--pw-ink);
	z-index: 1000;
}

.tm-chat-modal::backdrop {
	background: rgba(44, 42, 74, 0.35);
}

.tm-chat-modal__inner {
	display: flex;
	flex-direction: column;
	width: min(100% - 2rem, 42rem);
	height: 100%;
	margin: 0 auto;
	padding: 1.25rem 0 1.5rem;
}

.tm-chat-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 0 0.15rem;
	flex-shrink: 0;
}

.tm-chat-modal__identity {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.tm-chat-modal__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #2c2a4a, #a51a31);
	color: #fff;
	font-weight: 700;
	flex-shrink: 0;
}

.tm-chat-modal__title {
	margin: 0;
	font-family: var(--pw-display);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--tm-navy);
}

.tm-chat-modal__status {
	margin: 0.1rem 0 0;
	font-size: 0.75rem;
	color: #16a34a;
	font-weight: 500;
}

.tm-chat-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--pw-surface);
	color: var(--pw-ink);
	cursor: pointer;
	transition: background 0.2s var(--pw-ease);
}

.tm-chat-modal__close:hover {
	background: rgba(165, 26, 49, 0.12);
	color: var(--tm-red);
}

.tm-chat-thread {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.25rem 0.15rem 1rem;
	margin-bottom: 0.75rem;
}

.tm-chat-bubble {
	max-width: 88%;
	padding: 0.85rem 1rem;
	border-radius: 1.1rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.tm-chat-bubble p {
	margin: 0;
}

.tm-chat-bubble--assistant {
	align-self: flex-start;
	background: #f4f3f7;
	color: var(--tm-navy);
	border-bottom-left-radius: 0.35rem;
}

.tm-chat-bubble--user {
	align-self: flex-end;
	background: var(--tm-navy);
	color: #fff;
	border-bottom-right-radius: 0.35rem;
}

.tm-chat-bubble.is-thinking {
	opacity: 0.7;
	font-style: italic;
}

.tm-chat--modal {
	flex-shrink: 0;
	box-shadow: none;
	border: 1px solid var(--pw-line);
}

.tm-chat--modal .tm-chat__input {
	min-height: 4.5rem;
	max-height: 10rem;
	resize: vertical;
	font-size: 1rem;
}

.tm-chat__error {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--tm-red);
}

.tm-chat__create:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

body.tm-chat-modal-open {
	overflow: hidden;
}

@media (max-width: 720px) {
	.pw-hero__shot {
		width: min(100% - (var(--pw-gutter) * 2), 42rem);
	}

	.tm-chat-modal__inner {
		width: min(100% - 1.25rem, 42rem);
		padding-top: 1rem;
	}
}

/* Shared section bits */

.pw-section {
	padding: 5.5rem 0;
}

.pw-section__center {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2.75rem;
}

.pw-kicker {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--pw-muted);
}

.pw-h2 {
	margin: 0 0 0.85rem;
	font-family: var(--pw-display);
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: var(--pw-title-weight);
	color: var(--clb-title-color);
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.pw-lead {
	margin: 0;
	font-size: 1.0625rem;
	color: var(--pw-ink-soft);
}

/* Intro + sticky-stack timeline */

.pw-intro__head {
	text-align: center;
	max-width: 40rem;
	margin-bottom: 2.75rem;
}

.pw-timeline {
	max-width: 40rem;
	margin-inline: auto;
}

.pw-timeline__stack {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.pw-timeline__stack::before {
	content: "";
	position: absolute;
	top: 1.5rem;
	bottom: 1.5rem;
	left: 1.85rem;
	width: 2px;
	background: linear-gradient(
		180deg,
		rgba(165, 26, 49, 0.35),
		rgba(44, 42, 74, 0.12) 55%,
		transparent
	);
	pointer-events: none;
	z-index: 0;
}

.pw-timeline__step {
	position: sticky;
	top: calc(var(--pw-nav-offset) + 0.35rem + (var(--pw-step-i, 0) * 0.65rem));
	z-index: calc(20 + var(--pw-step-i, 0));
	padding-bottom: clamp(1.25rem, 3vw, 2rem);
	list-style: none;
}

.pw-timeline__card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.15rem;
	align-items: start;
	min-height: 8.5rem;
	padding: 1.35rem 1.5rem 1.45rem;
	background: var(--pw-white);
	border: 1px solid var(--pw-line);
	border-radius: var(--pw-radius);
	box-shadow:
		0 1px 0 rgba(44, 42, 74, 0.04),
		0 18px 40px -28px rgba(44, 42, 74, 0.35);
	backdrop-filter: blur(8px);
}

.pw-timeline__marker {
	position: relative;
	z-index: 1;
	padding-top: 0.15rem;
}

.pw-timeline__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: var(--pw-white);
	border: 1.5px solid rgba(165, 26, 49, 0.35);
	color: var(--clb-color-primary);
	box-shadow: 0 0 0 4px rgba(165, 26, 49, 0.1);
}

.pw-timeline__num {
	margin: 0 0 0.3rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--clb-color-primary);
}

.pw-timeline__title {
	margin: 0 0 0.5rem;
	font-family: var(--pw-display);
	font-size: clamp(1.15rem, 2.2vw, 1.35rem);
	font-weight: var(--pw-title-weight);
	color: var(--clb-title-color);
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.pw-timeline__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--pw-ink-soft);
}

@media (prefers-reduced-motion: reduce) {
	.pw-timeline__step {
		position: relative;
		top: auto;
	}
}

.pw-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
}

.pw-tags li {
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--pw-line);
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--pw-ink-soft);
}

/* Compare — vertical option cards */

.pw-compare__head {
	max-width: 40rem;
	margin: 0 0 2.5rem;
}

.pw-compare__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--pw-line);
	color: var(--pw-ink-soft);
	background: #fff;
}

.pw-compare__board {
	margin: 0 0 1.75rem;
}

.pw-compare__cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
	align-items: stretch;
}

.pw-compare__card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	background: var(--pw-white);
	border: 1px solid var(--pw-line);
	border-radius: var(--pw-radius);
	overflow: hidden;
	box-shadow: 0 14px 36px -28px rgba(44, 42, 74, 0.35);
}

.pw-compare__card.is-accent {
	border-color: rgba(165, 26, 49, 0.4);
	box-shadow:
		0 0 0 1px rgba(165, 26, 49, 0.12),
		0 18px 40px -24px rgba(165, 26, 49, 0.35);
}

.pw-compare__card-head {
	padding: 1.25rem 1.35rem 1.1rem;
	border-bottom: 1px solid var(--pw-line);
	background: var(--pw-surface);
}

.pw-compare__card.is-accent .pw-compare__card-head {
	background: rgba(165, 26, 49, 0.08);
	border-bottom-color: rgba(165, 26, 49, 0.2);
}

.pw-compare__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pw-muted);
}

.pw-compare__card.is-accent .pw-compare__eyebrow {
	color: var(--clb-color-primary);
}

.pw-compare__card-title {
	margin: 0;
	font-family: var(--pw-display);
	font-size: 1.15rem;
	font-weight: var(--pw-title-weight);
	color: var(--clb-title-color);
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.pw-compare__meta {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0.25rem 0;
	flex: 1;
}

.pw-compare__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.3rem;
	padding: 0.95rem 1.35rem;
	border-bottom: 1px solid var(--pw-line);
}

.pw-compare__row:last-child {
	border-bottom: 0;
}

.pw-compare__row dt {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--pw-muted);
}

.pw-compare__row dd {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--pw-ink-soft);
}

.pw-compare__row:first-child dd {
	font-weight: 600;
	color: var(--clb-title-color);
}

.pw-compare__card.is-accent .pw-compare__row:first-child dd {
	color: var(--clb-color-primary);
}

.pw-compare__method {
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--pw-muted);
	max-width: 52rem;
}

.pw-compare__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.25rem;
}

.pw-compare__save {
	margin: 0;
	max-width: 36rem;
	font-size: 1.05rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	color: var(--pw-ink);
}

@media (max-width: 980px) {
	.pw-compare__cards {
		grid-template-columns: 1fr;
		max-width: 32rem;
	}
}

/* Docs pages */

.pw-docs {
	padding-bottom: 2rem;
}

.pw-docs__layout {
	display: grid;
	grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
	gap: 2.5rem;
	padding: 3rem 0 4rem;
	align-items: start;
}

.pw-docs__nav .pw-kicker {
	margin-bottom: 0.85rem;
}

.pw-docs__nav ul {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.pw-docs__nav a {
	display: block;
	padding: 0.4rem 0.65rem;
	border-radius: 0.5rem;
	font-size: 0.925rem;
	color: var(--pw-ink-soft);
}

.pw-docs__nav a:hover,
.pw-docs__nav a.is-active {
	background: var(--pw-surface);
	color: var(--pw-ink);
	font-weight: 600;
}

.pw-docs__nav-foot {
	margin: 1.25rem 0 0;
	font-size: 0.875rem;
}

.pw-docs__nav-foot a {
	color: var(--pw-teal);
	font-weight: 600;
}

.pw-docs__content {
	min-width: 0;
}

.pw-docs__content h1 {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	letter-spacing: -0.03em;
}

.pw-docs__content h2 {
	margin: 2rem 0 0.75rem;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}

.pw-docs__content h3 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.05rem;
}

.pw-docs__content p,
.pw-docs__content li {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--pw-ink-soft);
}

.pw-docs__content ul,
.pw-docs__content ol {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
	list-style: disc;
}

.pw-docs__content ol {
	list-style: decimal;
}

.pw-docs__content a {
	color: var(--pw-teal);
	font-weight: 560;
}

.pw-docs__content pre {
	overflow-x: auto;
	padding: 1rem 1.15rem;
	border-radius: var(--pw-radius);
	background: var(--pw-surface);
	border: 1px solid var(--pw-line);
	font-size: 0.875rem;
}

.pw-docs__table-wrap {
	overflow-x: auto;
	margin: 1rem 0 1.5rem;
}

.pw-docs__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.925rem;
}

.pw-docs__content th,
.pw-docs__content td {
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--pw-line);
	text-align: left;
}

.pw-docs__content thead th {
	background: var(--pw-surface);
}

/* Audience */

.pw-audience {
	background: #fff;
}

.pw-audience__head {
	max-width: 40rem;
	margin: 0 0 2.75rem;
}

.pw-audience__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--pw-line);
	color: var(--pw-ink-soft);
	background: #fff;
}

.pw-audience__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 2.5rem;
	margin-bottom: 3.5rem;
}

.pw-audience__grid li {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.pw-audience__glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 1rem;
	color: var(--pw-ink);
}

.pw-audience__grid h3 {
	margin: 0 0 0.55rem;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.pw-audience__grid p {
	margin: 0;
	font-size: 0.975rem;
	line-height: 1.55;
	color: var(--pw-ink-soft);
}

.pw-quote {
	margin: 0;
	max-width: 42rem;
	padding-top: 0.5rem;
}

.pw-quote::before {
	content: "“";
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--pw-display);
	font-size: 4rem;
	line-height: 0.8;
	color: #cbd5e1;
}

.pw-quote blockquote {
	margin: 0 0 1.25rem;
}

.pw-quote blockquote p {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--pw-ink-soft);
}

.pw-quote__meta {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.pw-quote__stars {
	color: #f59e0b;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	line-height: 1;
}

.pw-quote__author {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--pw-ink);
	letter-spacing: -0.01em;
}

/* Features — What you get */

.pw-features {
	background: #fff;
}

.pw-features__head {
	max-width: 40rem;
	margin: 0 0 2.75rem;
}

.pw-features__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 0.75rem;
	border-radius: 0.55rem;
	border: 1px solid var(--pw-line);
	color: var(--pw-ink-soft);
	background: var(--pw-surface);
}

.pw-features__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.25rem 2.5rem;
}

.pw-feature {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	transition: none;
}

.pw-feature:hover {
	border-color: transparent;
	transform: none;
}

.pw-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 1rem;
	color: var(--pw-ink);
}

.pw-feature h3 {
	margin: 0 0 0.5rem;
	font-family: var(--pw-display);
	font-size: 1.1rem;
	font-weight: var(--pw-title-weight);
	color: var(--clb-title-color);
	letter-spacing: -0.02em;
}

.pw-feature p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--pw-ink-soft);
	max-width: 28ch;
}

/* Smarter features — 2x2 cards */

.pw-smarter__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.pw-smarter__card {
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.5rem 0;
	border: 1px solid var(--pw-line);
	border-radius: var(--pw-radius-lg);
	background: #fff;
	overflow: hidden;
	min-height: 100%;
}

.pw-smarter__copy {
	margin-bottom: 1.25rem;
}

.pw-smarter__copy h3 {
	margin: 0 0 0.45rem;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.pw-smarter__copy p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--pw-ink-soft);
	line-height: 1.5;
	max-width: 36ch;
}

.pw-smarter__visual {
	margin-top: auto;
	border-radius: var(--pw-radius) var(--pw-radius) 0 0;
	overflow: hidden;
	border: 1px solid var(--pw-line);
	border-bottom: 0;
	background: var(--pw-surface);
}

.pw-smarter__visual img {
	width: 100%;
	display: block;
}

.pw-smarter__cta {
	text-align: center;
}

/* Need more power — spread → gather stack */

.pw-power {
	position: relative;
	z-index: 3;
	padding-left: 0;
	padding-right: 0;
	overflow: hidden;
	background: var(--pw-white);
}

/* Hide the right blueprint rail where cards bleed to the viewport edge. */
.pw-power::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: min(calc(100% - var(--pw-gutter)), calc(50% + (var(--pw-max) / 2)));
	width: 10px;
	transform: translateX(-50%);
	background: var(--pw-white);
	pointer-events: none;
	z-index: 4;
}

/* Dots at rule intersections beside this section. */
.pw-rule:has(+ .pw-power) .pw-rule__dot--r,
.pw-power + .pw-rule .pw-rule__dot--r {
	opacity: 0;
}

.pw-power__layout {
	display: grid;
	grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	width: 100%;
	max-width: none;
	margin: 0;
	padding-left: max(var(--pw-gutter), calc((100vw - var(--pw-content)) / 2));
	padding-right: 0;
}

.pw-power__intro {
	max-width: 22rem;
}

.pw-power__intro .pw-lead {
	margin: 0.85rem 0 1.35rem;
}

.pw-power__nav {
	display: flex;
	gap: 0.6rem;
	margin-top: 1.5rem;
}

.pw-power__arrow {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	border: 1px solid var(--pw-line);
	background: #fff;
	color: var(--pw-ink);
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pw-power__arrow:hover:not(:disabled) {
	border-color: #cbd5e1;
	background: var(--pw-surface);
}

.pw-power__arrow:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.pw-power__stage {
	position: relative;
	min-width: 0;
	height: clamp(22rem, 52vw, 28rem);
	/* Room for left peek when cards gather into a stack. */
	padding-left: 1.75rem;
}

.pw-power__stack {
	position: relative;
	width: 100%;
	height: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pw-power__card {
	--pw-power-x: 0px;
	position: absolute;
	top: 0;
	left: 0;
	width: min(18.75rem, 82vw);
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 1.35rem 1.35rem 0;
	border-radius: var(--pw-radius-lg);
	border: 1px solid var(--pw-line);
	background: #fff;
	box-shadow: none;
	transform: translate3d(var(--pw-power-x), 0, 0);
	transition:
		transform 0.55s var(--pw-ease),
		box-shadow 0.25s ease,
		border-color 0.25s ease;
	z-index: 1;
	overflow: hidden;
	will-change: transform;
}

.pw-power__card:hover,
.pw-power__card.is-front:hover {
	box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.28);
}

.pw-power__card.is-front {
	box-shadow: none;
}

.pw-power__card.is-stacked {
	border-color: #d5dde8;
	box-shadow: none;
	pointer-events: none;
}

.pw-power__card h3 {
	margin: 0 0 0.4rem;
	font-family: var(--pw-display);
	font-size: 1.1rem;
	font-weight: var(--pw-title-weight);
	color: var(--clb-title-color);
	letter-spacing: -0.015em;
}

.pw-power__card p {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var(--pw-ink-soft);
	line-height: 1.5;
}

.pw-power__card img {
	width: 100%;
	margin-top: auto;
	border-radius: var(--pw-radius-sm) var(--pw-radius-sm) 0 0;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.pw-power__card {
		transition-duration: 0.01ms;
	}
}

/* Integrations — icon grid like features */

.pw-integrations {
	background: #fff;
}

.pw-integrations__head {
	max-width: 40rem;
	margin: 0 0 2.75rem;
}

.pw-integrations__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.25rem 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pw-integration {
	padding: 0;
	background: transparent;
	border: 0;
	text-align: left;
}

.pw-integration__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 1rem;
	color: var(--pw-ink);
}

.pw-integration h3 {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.pw-integration p {
	margin: 0;
	font-size: 0.925rem;
	line-height: 1.55;
	color: var(--pw-ink-soft);
	max-width: 26ch;
}

/* FAQ */

.pw-faq__head {
	max-width: 40rem;
	margin: 0 0 2rem;
}

.pw-faq__list {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.pw-faq__item {
	border: 1px solid var(--pw-line);
	border-radius: var(--pw-radius);
	background: #fff;
	padding: 0;
	overflow: hidden;
}

.pw-faq__question {
	cursor: pointer;
	list-style: none;
	padding: 1rem 1.25rem;
	font-size: 1.02rem;
	font-weight: 650;
	letter-spacing: -0.015em;
	color: var(--pw-ink);
}

.pw-faq__question::-webkit-details-marker {
	display: none;
}

.pw-faq__question::after {
	content: "+";
	float: right;
	font-weight: 500;
	color: var(--pw-muted);
}

.pw-faq__item[open] .pw-faq__question::after {
	content: "–";
}

.pw-faq__answer {
	padding: 0 1.25rem 1.15rem;
}

.pw-faq__answer p {
	margin: 0;
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--pw-ink-soft);
}

/* CTA */

.pw-cta-band {
	padding: 5rem 0 6rem;
	text-align: center;
	background:
		radial-gradient(ellipse 60% 70% at 50% 100%, rgba(165, 26, 49, 0.12), transparent 55%),
		linear-gradient(180deg, #fff 0%, var(--pw-surface) 100%);
}

.pw-cta-band__inner {
	max-width: 36rem;
}

.pw-cta-band .pw-lead {
	margin-bottom: 1.5rem;
}

/* Footer */

.pw-footer {
	position: relative;
	overflow: hidden;
	padding: 4rem 0 2rem;
	background: var(--pw-ink);
	color: #94a3b8;
}

.pw-footer > .pw-container {
	position: relative;
	z-index: 1;
}

.pw-footer .pw-hero__grid-bg {
	inset: 0;
	background-color: transparent;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 15%, transparent 72%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 15%, transparent 72%);
}

.pw-footer .pw-hero__grid-bg::before,
.pw-footer .pw-hero__grid-bg::after {
	background: rgba(148, 163, 184, 0.55);
	box-shadow:
		144px 144px 0 rgba(148, 163, 184, 0.35),
		288px 72px 0 rgba(148, 163, 184, 0.35),
		432px 216px 0 rgba(148, 163, 184, 0.45),
		calc(100% - 160px) 96px 0 rgba(148, 163, 184, 0.35),
		calc(100% - 80px) 240px 0 rgba(148, 163, 184, 0.45);
}

.pw-footer__top {
	display: grid;
	grid-template-columns: 1.2fr 2.5fr;
	gap: 2.5rem;
	margin-bottom: 2.5rem;
}

.pw-footer .pw-nav__wordmark {
	color: #fff;
}

.pw-footer__brand p {
	margin: 1rem 0 0;
	max-width: 22rem;
	font-size: 0.925rem;
	line-height: 1.55;
}

.pw-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

.pw-footer__col h2 {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.pw-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.pw-footer__col a {
	font-size: 0.9rem;
	color: #e2e8f0;
}

.pw-footer__col a:hover {
	color: #fff;
}

.pw-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid #1e293b;
	font-size: 0.8125rem;
}

.pw-footer__bottom a {
	color: #94a3b8;
}

.pw-footer__bottom a:hover {
	color: #fff;
}

/* Fallback */

.pw-fallback {
	padding: 4rem 0 6rem;
}

/* Motion */

[data-pw-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.65s var(--pw-ease), transform 0.65s var(--pw-ease);
}

[data-pw-reveal].is-visible {
	opacity: 1;
	transform: none;
}

[data-pw-reveal-delay].is-visible {
	transition-delay: 0.1s;
}

[data-pw-float] {
	animation: pw-float 8s ease-in-out infinite;
}

@keyframes pw-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-6px);
	}
}

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

	[data-pw-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	[data-pw-float] {
		animation: none;
	}
}

/* Responsive */

@media (max-width: 980px) {
	.pw-features__grid,
	.pw-audience__grid,
	.pw-integrations__grid {
		grid-template-columns: 1fr 1fr;
	}

	.pw-docs__layout {
		grid-template-columns: 1fr;
	}

	.pw-smarter__grid {
		grid-template-columns: 1fr;
	}

	.pw-power__layout {
		grid-template-columns: 1fr;
		padding-left: var(--pw-gutter);
		padding-right: var(--pw-gutter);
	}

	.pw-power__stage {
		height: 24rem;
		padding-left: 1.25rem;
	}

	.pw-footer__top {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.pw-rail {
		display: none;
	}

	.pw-rule__dot {
		display: none;
	}
	.pw-nav__toggle {
		display: inline-flex;
	}

	.pw-nav__menu {
		display: none;
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem;
		background: #fff;
		border: 1px solid var(--pw-line);
		border-radius: 1.25rem;
		box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.3);
	}

	.pw-nav {
		position: sticky;
	}

	.pw-nav__shell {
		position: relative;
		border-radius: 1.25rem;
	}

	.pw-nav__menu.is-open {
		display: flex;
	}

	.pw-nav__links {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.pw-nav__actions {
		display: flex;
		flex-direction: column;
	}

	.pw-hero {
		padding-top: 2rem;
	}

	.pw-hero__title {
		max-width: none;
	}

	.pw-features__grid,
	.pw-audience__grid,
	.pw-integrations__grid,
	.pw-footer__cols {
		grid-template-columns: 1fr;
	}

	.pw-section {
		padding: 4rem 0;
	}
}
