/* ── Tool pages (v3.dfirst.ai/landing/tools/*, D-TOOL-PAGES) ────────────────
   One page per tool of the app's gallery, on top of modules.css (header,
   footer, buttons, sections, FAQ, cards). The hero carries the start box:
   the tool's own fields, a draft kept on the device, one action to sign up.
   Generated pages: scripts/landing/build-tool-pages.mjs. */

/* Hero: the phrase people search, the answer, the start box. */
.tp-hero {
	padding: 54px 0 34px;
}
.tp-crumbs a {
	color: var(--muted);
}
.tp-crumbs a:hover {
	color: var(--ink);
}
.tp-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 56px;
	align-items: start;
}
.tp-hero h1 {
	font-size: clamp(40px, 5.2vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.055em;
	font-weight: 600;
	text-wrap: balance;
}
.tp-hero h1 .grey {
	display: block;
	color: var(--faint);
}
.tp-answer {
	margin-top: 26px;
	max-width: 58ch;
	color: var(--ink-2);
	font-size: 17px;
	line-height: 1.6;
}
.tp-answer a,
.tp-facts dd a,
.tp-why p a,
.mp-faq details p a {
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-underline-offset: 3px;
}
.tp-ticks {
	display: grid;
	gap: 10px;
	margin-top: 26px;
}
.tp-ticks li {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 15px;
	color: var(--ink);
}
.tp-ticks svg {
	flex: none;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--ink);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The start box, drawn like the tool's own form in the app (workflow-apps
   and the storyboard composer): numbered fields, a drop zone with a tilted
   file tile, rectangular choices, one citron action with an arrow box. */
.tp-box {
	--tw-bg: #ffffff;
	--tw-surface: #f5f5f7;
	--tw-surface-2: #fbfbfd;
	--tw-ink: #1d1d1f;
	--tw-ink-2: #6e6e73;
	--tw-ink-50: #8e8e93;
	--tw-line: #e5e5ea;
	--tw-line-2: #d2d2d7;
	--tw-accent: #e2ff52;
	--tw-accent-hover: #d7f53f;
	--tw-accent-ink: #0e1500;
	--tw-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
	position: relative;
}
.tw {
	display: grid;
	gap: 18px;
	color: var(--tw-ink);
}
.tw-app {
	padding: 22px 22px 18px;
	border: 1px solid var(--tw-line);
	border-radius: 22px;
	background: var(--tw-bg);
	box-shadow: 0 16px 60px rgb(29 29 31 / 0.06);
}
.tw-top {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.tw-sym {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: var(--tw-accent);
	color: var(--tw-accent-ink);
}
.tw-sym svg,
.tw-drop-ico svg,
.tw-ing svg,
.tw-chip svg,
.tw-go-arrow svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.tw-top b {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.tw-keep {
	margin-left: auto;
	color: var(--tw-ink-2);
	font-size: 11px;
	white-space: nowrap;
}
.tw.has-draft .tw-keep::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 6px;
	border-radius: 50%;
	background: #2bb673;
	vertical-align: 1px;
}
.tw-fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.tw-field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.tw-label {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 10px;
	padding: 0;
	color: var(--tw-ink);
	font-size: 12.5px;
	font-weight: 500;
}
.tw-num {
	color: var(--tw-ink-2);
	font-family: var(--tw-mono);
	font-size: 9.5px;
	font-weight: 400;
	letter-spacing: -0.03em;
}
.tw-opt {
	color: var(--tw-ink-50);
	font-weight: 400;
}
.tw-text textarea,
.tw-text input {
	width: 100%;
	padding: 14px 15px;
	border: 1px solid var(--tw-line);
	border-radius: 14px;
	background: var(--tw-surface-2);
	color: var(--tw-ink);
	font: inherit;
	font-size: 13.5px;
	line-height: 1.6;
	box-shadow: inset 0 1px 2px rgb(29 29 31 / 0.02);
	resize: vertical;
	transition:
		border-color 0.2s,
		background-color 0.2s;
}
.tw-text textarea {
	min-height: 104px;
}
.tw-text input {
	min-height: 48px;
	padding-block: 12px;
}
.tw-text textarea:focus,
.tw-text input:focus {
	border-color: var(--tw-ink-2);
	outline: 2px solid var(--tw-accent);
	outline-offset: 1px;
}
.tw-text textarea::placeholder,
.tw-text input::placeholder {
	color: var(--tw-ink-2);
	opacity: 0.85;
}
.tw-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tw-opt-btn {
	position: relative;
}
.tw-opt-btn input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}
.tw-opt-btn span {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 44px;
	min-width: 64px;
	justify-content: center;
	padding: 0 16px;
	border: 1px solid var(--tw-line);
	border-radius: 10px;
	color: var(--tw-ink-2);
	font-size: 12.5px;
	transition:
		background-color 0.2s,
		border-color 0.2s,
		box-shadow 0.2s;
}
.tw-opt-btn input:hover + span {
	border-color: var(--tw-line-2);
}
.tw-opt-btn input:checked + span {
	color: var(--tw-ink);
	background: color-mix(in srgb, var(--tw-accent) 16%, #fff);
	border-color: color-mix(in srgb, var(--tw-ink) 30%, #fff);
	box-shadow: 0 1px 3px rgb(29 29 31 / 0.05);
}
.tw-opt-btn input:focus-visible + span {
	outline: 2px solid var(--tw-ink);
	outline-offset: 2px;
}
.tw-ratio {
	display: block;
	flex: none;
	width: 14px;
	height: 14px;
	border: 1px solid currentColor;
	border-radius: 2px;
}
.tw-ratio.r-16-9 {
	width: 16px;
	height: 9px;
}
.tw-ratio.r-9-16 {
	width: 9px;
	height: 16px;
}
.tw-opt-btn input:checked + span .tw-ratio {
	background: var(--tw-accent);
}

/* The drop zone: a tilted file tile with a citron plus, like the app. */
.tw-media {
	position: relative;
	min-width: 0;
}
.tw-drop {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 96px;
	padding: 18px 18px 18px 84px;
	border: 1px dashed var(--tw-line-2);
	border-radius: 14px;
	background: var(--tw-surface-2);
	cursor: pointer;
	transition:
		border-color 0.2s,
		background-color 0.2s;
}
.tw-drop[hidden] {
	display: none;
}
.tw-drop:hover,
.tw-drop.is-over {
	border-color: var(--tw-ink-2);
	background: #fff;
}
.tw-file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.tw-drop:has(.tw-file:focus-visible) {
	outline: 2px solid var(--tw-ink);
	outline-offset: 2px;
}
.tw-drop-ico {
	position: absolute;
	top: 50%;
	left: 22px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 44px;
	margin-top: -22px;
	border: 1px solid var(--tw-line);
	border-radius: 9px;
	background: #fff;
	color: var(--tw-ink-2);
	box-shadow:
		-4px 3px 0 var(--tw-surface),
		-5px 4px 0 var(--tw-line),
		0 3px 8px rgb(29 29 31 / 0.06);
	transform: rotate(-8deg);
	transition: transform 0.2s;
}
.tw-drop:hover .tw-drop-ico,
.tw-drop.is-over .tw-drop-ico {
	transform: rotate(0) translateY(-2px);
}
.tw-drop-plus {
	position: absolute;
	right: -7px;
	bottom: -5px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--tw-accent);
	color: var(--tw-accent-ink);
}
.tw-drop-plus svg {
	width: 11px;
	height: 11px;
	stroke-width: 2.4;
}
.tw-drop-copy {
	display: grid;
	gap: 3px;
}
.tw-drop-copy b {
	font-size: 13px;
	font-weight: 500;
}
.tw-drop-copy small {
	color: var(--tw-ink-2);
	font-size: 11px;
	line-height: 1.45;
}
.tw-drop-copy small.is-warn,
.tw-file-info.is-warn {
	color: #b4231b;
}
.tw-preview {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
	border: 1px solid var(--tw-line);
	border-radius: 14px;
	background: var(--tw-surface-2);
}
.tw-preview[hidden] {
	display: none;
}
.tw-preview-media {
	flex: none;
	width: 84px;
	height: 84px;
	overflow: hidden;
	border-radius: 10px;
	background: repeating-conic-gradient(#ececf0 0% 25%, #fff 0% 50%) 50% / 14px 14px;
}
.tw-preview-media img,
.tw-preview-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tw-preview-meta {
	display: grid;
	gap: 3px;
	min-width: 0;
	flex: 1;
}
.tw-file-name {
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tw-file-info {
	color: var(--tw-ink-2);
	font-size: 11.5px;
}
.tw-clear {
	flex: none;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--tw-ink-2);
	font-size: 12.5px;
}
.tw-clear:hover {
	color: var(--tw-ink);
	background: var(--tw-surface);
}

/* Examples to start from, drawn like the composer's ingredient chips. */
.tw-try {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.tw-try-label {
	margin-right: 2px;
	color: var(--tw-ink-2);
	font-size: 11.5px;
}
.tw-try button {
	max-width: 100%;
	height: 32px;
	padding: 0 12px;
	overflow: hidden;
	border: 1px dashed var(--tw-line-2);
	border-radius: 999px;
	color: var(--tw-ink-2);
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition:
		border-color 0.16s,
		color 0.16s;
}
.tw-try button:hover {
	border-style: solid;
	border-color: var(--tw-ink-2);
	color: var(--tw-ink);
}

/* The one action. */
.tw-go {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 52px;
	padding: 0 10px 0 20px;
	border-radius: 14px;
	background: var(--tw-accent);
	color: var(--tw-accent-ink);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: inset 0 -2px 0 rgb(14 21 0 / 0.09);
	transition: background-color 0.2s;
}
.tw-go:hover {
	background: var(--tw-accent-hover);
}
.tw-go-arrow {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: rgb(255 255 255 / 0.32);
}
.tw-go-arrow svg {
	transition: transform 0.2s;
}
.tw-go:hover .tw-go-arrow svg {
	transform: translateX(3px);
}
.tw-note {
	max-width: 44ch;
	margin: -6px auto 0;
	color: var(--tw-ink-2);
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
}

/* Storyboard to video: the composer itself. */
.tw-composer {
	gap: 14px;
}
.tw-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.tw-prompt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--tw-line-2);
	border-radius: 22px;
	background: #fff;
	box-shadow:
		0 1px 2px rgb(29 29 31 / 0.04),
		0 18px 40px -26px rgb(29 29 31 / 0.24);
	transition:
		border-color 0.16s,
		box-shadow 0.16s;
}
.tw-prompt-card:focus-within {
	border-color: var(--tw-ink-2);
	box-shadow:
		0 1px 2px rgb(29 29 31 / 0.05),
		0 22px 48px -26px rgb(29 29 31 / 0.32);
}
.tw-prompt {
	display: block;
	width: 100%;
	min-height: 132px;
	padding: 22px 22px 8px;
	border: 0;
	border-radius: 22px 22px 0 0;
	background: transparent;
	color: var(--tw-ink);
	font: inherit;
	font-size: 17px;
	line-height: 1.5;
	letter-spacing: -0.01em;
	resize: none;
}
.tw-prompt:focus {
	outline: none;
}
.tw-prompt::placeholder {
	color: var(--tw-ink-50);
}
.tw-ings {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 4px 18px 10px;
}
.tw-ing {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	max-width: 220px;
	min-height: 0;
	padding: 0 12px 0 10px;
	border: 1px dashed var(--tw-line-2);
	border-radius: 999px;
	background: transparent;
	color: var(--tw-ink-2);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}
.tw-ing:hover {
	border-style: solid;
	border-color: var(--tw-ink-2);
	color: var(--tw-ink);
}
.tw-ing.is-later {
	cursor: default;
	opacity: 0.55;
}
.tw-ing.is-later:hover {
	border-style: dashed;
	border-color: var(--tw-line-2);
	color: var(--tw-ink-2);
}
.tw-media-chip {
	display: inline-flex;
}
.tw-media-chip .tw-drop-copy,
.tw-media-chip .tw-file-info {
	display: none;
}
.tw-preview.is-filled {
	gap: 7px;
	padding: 0 4px 0 4px;
	border: 1px solid transparent;
	background: var(--tw-surface);
	color: var(--tw-ink);
	cursor: default;
}
.tw-preview.is-filled .tw-preview-media {
	width: 26px;
	height: 26px;
	border-radius: 50%;
}
.tw-preview.is-filled .tw-file-name {
	max-width: 120px;
	font-size: 12.5px;
	font-weight: 500;
}
.tw-preview.is-filled .tw-clear {
	padding: 4px 8px;
	font-size: 15px;
	line-height: 1;
}
.tw-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	padding: 8px 12px 12px 14px;
}
.tw-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--tw-ink-2);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color 0.14s,
		color 0.14s;
}
.tw-chip:hover,
.tw-chip.is-on {
	background: var(--tw-surface);
	color: var(--tw-ink);
}
.tw-chip.is-static {
	cursor: default;
}
.tw-chip-ico {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 5px;
	background: var(--tw-ink);
	color: #fff;
}
.tw-chip-ico svg {
	width: 13px;
	height: 13px;
}
.tw-go-compact {
	width: auto;
	height: 44px;
	margin-left: auto;
	gap: 10px;
	padding: 0 8px 0 18px;
	border-radius: 12px;
}
.tw-go-compact .tw-go-arrow {
	width: 28px;
	height: 28px;
	border-radius: 8px;
}
.tw-composer .tw-try {
	justify-content: center;
}

/* Examples. */
.tp-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.tp-g {
	display: grid;
	gap: 12px;
	align-content: start;
}
.tp-g.wide {
	grid-column: span 2;
}
.tp-g.full {
	grid-column: 1 / -1;
}
.tp-gallery.cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tp-gallery.cols-1 {
	grid-template-columns: minmax(0, 1fr);
}
.tp-gallery.cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tp-g.sq .tp-g-media img {
	aspect-ratio: 1 / 1;
}
.tp-g.land .tp-g-media img,
.tp-g.land .tp-g-media video {
	aspect-ratio: 16 / 9;
}
.tp-g.tall .tp-g-media img {
	aspect-ratio: 9 / 16;
}
.tp-g.contain .tp-g-media img {
	object-fit: contain;
}
.tp-g figcaption {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.55;
}
.tp-g-media {
	overflow: hidden;
	border-radius: 20px;
	background: var(--paper);
}
.tp-g-media img,
.tp-g-media video {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.tp-g.wide .tp-g-media img,
.tp-g.wide .tp-g-media video {
	aspect-ratio: 16 / 9;
}
.tp-pair-in {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	overflow: hidden;
	border-radius: 20px;
}
.tp-pair-side {
	position: relative;
	display: block;
	background:
		repeating-conic-gradient(#ececf0 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}
.tp-pair-side img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.tp-pair-side:last-child img {
	object-fit: contain;
}
.tp-pair-side em {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.9);
	color: var(--ink);
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
}
.tp-strip-in {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 6px;
	overflow: hidden;
	border-radius: 20px;
}
.tp-strip-in img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.tp-doc {
	display: grid;
	gap: 10px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-2);
}
.tp-doc > small {
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.tp-doc h4 {
	color: var(--ink);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.tp-doc b {
	color: var(--ink);
}
.tp-doc ul {
	display: grid;
	gap: 6px;
	padding-left: 18px;
	list-style: disc;
}

/* How it works: the storyboard's step cards (numbered, a citron check, the
   last one dark), played once as a run when the section shows. */
.tp-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.tp-step {
	display: grid;
	gap: 14px;
	align-content: start;
}
.tp-step-card {
	position: relative;
	display: grid;
	gap: 10px;
	padding: 16px 18px 15px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	transition:
		background-color 0.3s,
		border-color 0.3s,
		color 0.3s;
}
.tp-step-head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}
.tp-step-num {
	color: var(--faint);
	font-size: 15px;
	letter-spacing: -0.02em;
}
.tp-step-label {
	overflow: hidden;
	font-size: 19px;
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tp-step-meta {
	display: flex;
	align-items: center;
	gap: 7px;
	min-height: 18px;
	color: var(--muted);
	font-size: 12.5px;
}
.tp-step-check {
	display: inline-grid;
	place-items: center;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: var(--lime);
	color: var(--ink);
}
.tp-step-check svg {
	width: 11px;
	height: 11px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.tp-step-live {
	display: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 0 3px rgb(226 255 82 / 0.35);
	animation: tp-pulse 1.4s ease-in-out infinite;
}
.tp-step-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: transparent;
}
.tp-step-bar i {
	display: block;
	width: 0;
	height: 100%;
	background: var(--ink);
}
.tp-step > p {
	padding: 0 4px;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.6;
}
.tp-step[data-state="current"] .tp-step-card {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}
.tp-step[data-state="current"] .tp-step-num,
.tp-step[data-state="current"] .tp-step-meta {
	color: rgb(255 255 255 / 0.62);
}
.tp-step[data-state="pending"] .tp-step-card {
	border-style: dashed;
	background: transparent;
}
.tp-step[data-state="pending"] .tp-step-label {
	color: var(--faint);
}
.tp-step[data-state="pending"] .tp-step-check,
.tp-step[data-state="live"] .tp-step-check {
	display: none;
}
.tp-step[data-state="live"] .tp-step-live {
	display: inline-block;
}
.tp-step[data-state="live"] .tp-step-card {
	border-color: var(--ink-2);
}
.tp-step[data-state="live"] .tp-step-bar i {
	animation: tp-fill 1.1s linear forwards;
}
@keyframes tp-fill {
	to {
		width: 100%;
	}
}
@keyframes tp-pulse {
	50% {
		box-shadow: 0 0 0 6px rgb(226 255 82 / 0.15);
	}
}

/* Why DFIRST: a soft band with three icon cards. */
.tp-band {
	margin: 32px 0;
	background: var(--paper-2);
	border-block: 1px solid var(--line-2);
}
.tp-band > .mp-section {
	padding-block: 76px;
}
.tp-why {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.tp-why article {
	display: grid;
	gap: 10px;
	align-content: start;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
}
.tp-why-i {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 4px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--lime) 55%, #fff);
	color: var(--ink);
}
.tp-why-i svg,
.tp-works-i svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.tp-works-i svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	stroke: none;
}
.tp-why h3,
.tp-uses h3 {
	text-wrap: balance;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.tp-why p,
.tp-uses p {
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.6;
}

/* Who uses it: compact rows with an initial. */
.tp-uses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.tp-uses article {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px;
	border-radius: 18px;
	background: var(--paper);
}
.tp-uses-i {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--ink);
	font-size: 16px;
	font-weight: 600;
}
.tp-uses article > div {
	display: grid;
	gap: 4px;
	min-width: 0;
}

/* Works with: the modules as the app's "made with" pills. */
.tp-works {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
}
.tp-works > span {
	color: var(--muted);
	font-size: 13px;
}
.tp-works ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.tp-works a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px 4px 4px;
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-size: 13px;
	transition: background 0.2s;
}
.tp-works a:hover {
	background: var(--line-2);
}
.tp-works-i {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--lime);
}

/* The storyboard composer's fanned frames. */
.tw-fan {
	position: relative;
	height: 150px;
	margin: 0 6% -6px;
}
.tw-fan img {
	position: absolute;
	top: 18px;
	width: 42%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.4);
}
.tw-fan img:nth-child(1) {
	left: 0;
	transform: rotate(-6deg);
}
.tw-fan img:nth-child(2) {
	top: 0;
	left: 24%;
	z-index: 1;
	width: 52%;
	border-radius: 16px;
}
.tw-fan img:nth-child(3) {
	right: 0;
	transform: rotate(6deg);
}

/* Facts. */
.tp-facts {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 48px;
	padding: 40px;
	border-radius: 28px;
	background: var(--paper);
}
.tp-facts h2 {
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 1.05;
}
.tp-facts > div > p {
	margin-top: 14px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}
.tp-facts dl {
	display: grid;
	margin: 0;
}
.tp-facts dl > div {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 18px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}
.tp-facts dl > div:first-child {
	border-top: 1px solid var(--line);
}
.tp-facts dt {
	color: var(--muted);
	font-size: 14px;
}
.tp-facts dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.tp-updated {
	padding: 0 0 40px;
	color: var(--faint);
	font-size: 13px;
}

/* The hub. */
.tp-hub-hero {
	padding-bottom: 10px;
}
.tp-hub-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 48px;
	align-items: end;
}
.tp-hub-grid .tp-answer {
	margin-top: 0;
}
.tp-hub-grid .actions {
	margin-top: 24px;
}
.tp-feature-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 44px;
}
.tp-feature {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 24px;
	background: var(--dark);
	color: #fff;
}
.tp-feature-media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}
.tp-feature:hover .tp-feature-media img {
	transform: scale(1.03);
}
.tp-feature-copy {
	position: absolute;
	inset: auto 0 0;
	display: grid;
	gap: 4px;
	padding: 60px 26px 24px;
	background: linear-gradient(transparent, rgb(0 0 0 / 0.62));
}
.tp-feature-copy small {
	color: rgb(255 255 255 / 0.7);
	font-size: 12px;
	font-weight: 600;
}
.tp-feature-copy b {
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.03em;
}
.tp-feature-copy span {
	color: rgb(255 255 255 / 0.85);
	font-size: 15px;
}
.tp-hub-sec .mp-head h2 .grey {
	font-size: 0.55em;
	letter-spacing: -0.02em;
	vertical-align: 0.3em;
}

@media (max-width: 980px) {
	/* On phones the start box comes right after the heading; the answer
	   stays first in the HTML for search engines and assistants. */
	.tp-hero-copy {
		display: contents;
	}
	.tp-hero-grid h1 {
		order: 1;
	}
	.tp-box {
		order: 2;
	}
	.tp-answer {
		order: 3;
		margin-top: 0;
	}
	.tp-ticks {
		order: 4;
		margin-top: -12px;
	}
	.tp-hero-grid,
	.tp-hub-grid,
	.tp-facts {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.tp-gallery,
	.tp-gallery.cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	/* Two across: an example that would sit alone on its row takes the
	   whole row (a text example after a wide one, the third picture). */
	.tp-gallery > .tp-g.wide + .tp-g:last-child,
	.tp-gallery:not(:has(.wide, .full)) > .tp-g:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
	.tp-steps,
	.tp-why,
	.tp-uses {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.tp-band > .mp-section {
		padding-block: 56px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.tp-step-live,
	.tp-step[data-state="live"] .tp-step-bar i {
		animation: none;
	}
}
@media (max-width: 640px) {
	.tw-fan {
		height: 112px;
	}
	.tp-hero {
		padding-top: 30px;
	}
	.tp-hero h1 {
		font-size: 40px;
	}
	.tp-answer {
		font-size: 16px;
	}
	.tw-app {
		padding: 16px 16px 14px;
		border-radius: 20px;
	}
	.tw-keep {
		display: none;
	}
	.tw-prompt {
		min-height: 110px;
		padding: 16px 16px 6px;
		font-size: 16px;
	}
	.tw-ings {
		padding: 2px 12px 8px;
	}
	.tw-bar {
		padding: 6px 8px 10px;
	}
	.tw-go-compact {
		width: 100%;
		margin-left: 0;
		margin-top: 4px;
	}
	.tp-gallery,
	.tp-gallery.cols-2,
	.tp-gallery.cols-3,
	.tp-feature-row {
		grid-template-columns: minmax(0, 1fr);
	}
	.tp-g.wide {
		grid-column: auto;
	}
	.tp-strip-in {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.tp-facts {
		padding: 26px 20px;
	}
	.tp-facts dl > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}
}

/* Touch screens: every control in the start box is at least 40 px tall
   (2026-10-17 phone review). */
@media (pointer: coarse) {
	.tw-try button,
	.tw-chip {
		height: 40px;
	}
	.tp-works a {
		min-height: 40px;
	}
	.tp-crumbs a {
		display: inline-block;
		padding-block: 10px;
		margin-block: -10px;
	}
}
/* Phones: the start box's small print stays readable. */
@media (max-width: 640px) {
	.tw-num {
		font-size: 10.5px;
	}
	.tw-note,
	.tw-drop-copy small,
	.tw-keep,
	.tw-try-label,
	.tp-pair-side em {
		font-size: 12px;
	}
}
