/*
 * tMP Core — /getting-started/.
 *
 * Inherits the pin-sheet system from frame.css / chrome.css / home.css: the paper, the ink, the
 * serif headings, .tmp-wrap, .tmp-btn, .tmp-display, .tmp-eyebrow, .tmp-lead. The panels borrow
 * the sign-up form's language — a card on paper, a soft border, the accent ring on the chosen
 * one — so the page and the form it leads to feel like one thing.
 *
 * THE BOARD is one grid, three columns: theirs, the wire, ours. Not an SVG, because it has to
 * fold into a single column on a phone and still mean the same, and a drawing of lines cannot.
 *
 * The joined wires are quiet on purpose. Six glowing lines and a gap reads as six things you have
 * to admire; a gap among six settled ones reads as the only thing left to do, which is the point.
 */

.tmp-jy { display: block; }

/* ---------------------------------------------------------------- the hero */
.tmp-jy__hero { padding: 64px 0 34px; max-width: 900px; }
.tmp-jy__hero .tmp-lead { max-width: 64ch; }
.tmp-jy__hero .tmp-lead b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- the board */
.tmp-jy__board { padding: 0 0 66px; }

.tmp-jy__heads {
	display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); gap: 0 18px;
	padding: 0 22px 10px;
}
.tmp-jy__head { font-family: var(--mono, ui-monospace, monospace); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.tmp-jy__head--wire { text-align: center; color: var(--green); }
.tmp-jy__head--ours { text-align: right; }

.tmp-jy__rows { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tmp-jy__row + .tmp-jy__row { border-top: 1px solid var(--line2); }

.tmp-jy__open {
	display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); align-items: center; gap: 0 18px;
	width: 100%; padding: 15px 22px; background: none; border: 0; text-align: left; cursor: pointer;
	font: inherit; color: var(--ink2); transition: background .15s ease;
}
.tmp-jy__open:hover { background: rgba(15, 32, 41, .028); }
.tmp-jy__open:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: -3px; }

.tmp-jy__side { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tmp-jy__side--ours { justify-content: flex-end; text-align: right; }
.tmp-jy__ico {
	flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
	background: var(--paper); border: 1px solid var(--line2); color: var(--ink2);
}
.tmp-jy__sidename { font-size: 15.5px; line-height: 1.3; color: var(--ink); font-weight: 500; min-width: 0; }
.tmp-jy__side--ours .tmp-jy__sidename { color: var(--ink2); font-weight: 400; }
.tmp-jy__state {
	flex: none; font-family: var(--mono, ui-monospace, monospace); font-size: 9.5px;
	letter-spacing: .1em; text-transform: uppercase; color: var(--green);
	padding: 3px 8px; border-radius: 20px; background: var(--green-tint);
}

/* ---- the wire between them ---- */
.tmp-jy__wire { position: relative; display: flex; align-items: center; justify-content: center; height: 36px; }
.tmp-jy__line { position: relative; display: block; width: 100%; height: 2px; background: var(--line); border-radius: 2px; }
.tmp-jy__line::before, .tmp-jy__line::after {
	content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
	border-radius: 50%; background: var(--line);
}
.tmp-jy__line::before { left: -1px; }
.tmp-jy__line::after { right: -1px; }

/* Something is travelling. Slow, small, and only one at a time — this is furniture, not a light show. */
.tmp-jy__pulse { position: absolute; top: 50%; left: 0; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--blue-deep); opacity: 0; animation: tmp-jy-run 4.6s linear infinite; }
.tmp-jy__row:nth-child(2) .tmp-jy__pulse { animation-delay: .7s; }
.tmp-jy__row:nth-child(3) .tmp-jy__pulse { animation-delay: 1.5s; }
.tmp-jy__row:nth-child(4) .tmp-jy__pulse { animation-delay: 2.3s; }
.tmp-jy__row:nth-child(5) .tmp-jy__pulse { animation-delay: 3.1s; }
.tmp-jy__row:nth-child(6) .tmp-jy__pulse { animation-delay: 3.9s; }
@keyframes tmp-jy-run {
	0% { left: 0; opacity: 0; }
	12% { opacity: .85; }
	78% { opacity: .85; }
	90%, 100% { left: 100%; opacity: 0; }
}

/* ---- the one that is not joined ---- */
.tmp-jy__row.is-bridge { background: rgba(180, 83, 28, .045); }
.tmp-jy__gap { position: relative; display: block; width: 100%; height: 2px; }
/* The two stubs, reaching for each other and not touching. */
.tmp-jy__gap::before, .tmp-jy__gap::after {
	content: ""; position: absolute; top: 0; width: 26%; height: 2px; border-radius: 2px;
	background: repeating-linear-gradient(to right, #C88A52 0 5px, transparent 5px 10px);
}
.tmp-jy__gap::before { left: 0; }
.tmp-jy__gap::after { right: 0; }
.tmp-jy__gaplabel {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	font-family: var(--mono, ui-monospace, monospace); font-size: 9px; letter-spacing: .12em;
	text-transform: uppercase; color: #B4531C; white-space: nowrap;
	padding: 3px 9px; border-radius: 20px; background: var(--card); border: 1px dashed #D8B36A;
}
.tmp-jy__row.is-bridge .tmp-jy__ico { border-color: #D8B36A; color: #B4531C; background: #FDF8EF; }
.tmp-jy__row.is-bridge .tmp-jy__state { color: #B4531C; background: #FBEFDD; }
.tmp-jy__row.is-bridge .tmp-jy__open:hover { background: rgba(180, 83, 28, .07); }

/* ---- what travels along it ---- */
.tmp-jy__flow { padding: 0 22px 18px; max-width: 74ch; }
.tmp-jy__flow p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--muted); }
.tmp-jy__board.is-live .tmp-jy__flow { display: none; }
.tmp-jy__board.is-live .tmp-jy__row.is-open .tmp-jy__flow { display: block; animation: tmp-jy-drop .22s ease both; }
@keyframes tmp-jy-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.tmp-jy__flowgo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 0 !important; }
.tmp-jy__flowgo span { font-size: 14px; color: var(--muted); }

.tmp-jy__boardnote { margin: 18px 0 0; max-width: 72ch; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------- the sign-up */
.tmp-jy__ask { padding: 0 0 66px; }
.tmp-jy__askin {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 34px; align-items: center;
	padding: 34px 36px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
}
.tmp-jy__askcopy .tmp-display { font-size: clamp(27px, 3.4vw, 38px); }
.tmp-jy__askcopy p { font-size: 16px; line-height: 1.62; max-width: 52ch; }
.tmp-jy__askcopy .tmp-actions { margin-top: 20px; }

.tmp-jy__asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tmp-jy__asks li { display: flex; align-items: flex-start; gap: 13px; padding: 15px 17px; background: var(--paper); border: 1px solid var(--line2); border-radius: 12px; }
.tmp-jy__askn {
	flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	background: var(--card); border: 1px solid var(--line); color: var(--muted);
	font-family: var(--mono, ui-monospace, monospace); font-size: 11px;
}
.tmp-jy__askb { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tmp-jy__askb b { font-size: 15px; font-weight: 600; color: var(--ink); }
.tmp-jy__askb span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ------------------------------------------------------------ the one gate */
.tmp-jy__gate { padding: 0 0 66px; }
.tmp-jy__gatein {
	max-width: 760px; padding: 36px 38px 34px;
	background: var(--card); border: 1px solid var(--line2); border-radius: 20px;
	box-shadow: 0 30px 60px -46px rgba(15, 32, 41, .5);
}
.tmp-jy__gatein .tmp-display { font-size: clamp(27px, 3.4vw, 38px); }
.tmp-jy__gatein p { font-size: 16px; line-height: 1.65; }
.tmp-jy__road { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line2); font-size: 15px; }

/* ----------------------------------------------------------- the questions */
.tmp-jy__qs { padding: 0 0 78px; }
.tmp-jy__qlist { max-width: 780px; margin: 26px 0 0; border-top: 1px solid var(--line2); }
.tmp-jy__q { border-bottom: 1px solid var(--line2); }
.tmp-jy__q summary {
	list-style: none; cursor: pointer; padding: 17px 34px 17px 0; position: relative;
	font-family: var(--serif); font-size: 21px; color: var(--ink); line-height: 1.25;
}
.tmp-jy__q summary::-webkit-details-marker { display: none; }
.tmp-jy__q summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
	border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
	transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.tmp-jy__q[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.tmp-jy__q summary:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 6px; }
.tmp-jy__q p { margin: 0 0 20px; max-width: 66ch; font-size: 15.5px; line-height: 1.65; }

/* ------------------------------------------------------------------ narrow */
@media (max-width: 960px) {
	.tmp-jy__heads, .tmp-jy__open { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); }
	.tmp-jy__gaplabel { display: none; }
	.tmp-jy__state { display: none; }
}
@media (max-width: 760px) {
	.tmp-jy__hero { padding: 44px 0 26px; }
	.tmp-jy__heads { display: none; }
	/*
	 * The board folds. Theirs on top, the wire turned upright between, ours below — the same
	 * sentence read downwards, which is the only fold that keeps the meaning.
	 */
	.tmp-jy__open { grid-template-columns: 1fr; gap: 0; padding: 16px 18px; }
	.tmp-jy__side--ours { justify-content: flex-start; text-align: left; padding-left: 47px; }
	.tmp-jy__wire { height: 26px; width: 36px; justify-content: center; }
	.tmp-jy__line { width: 2px; height: 100%; }
	.tmp-jy__line::before, .tmp-jy__line::after { left: 50%; margin-left: -3.5px; margin-top: 0; }
	.tmp-jy__line::before { top: -1px; }
	.tmp-jy__line::after { top: auto; bottom: -1px; }
	.tmp-jy__pulse { animation-name: tmp-jy-rundown; left: 50%; margin-left: -2.5px; }
	@keyframes tmp-jy-rundown {
		0% { top: 0; opacity: 0; }
		12% { opacity: .85; }
		78% { opacity: .85; }
		90%, 100% { top: 100%; opacity: 0; }
	}
	.tmp-jy__gap { width: 2px; height: 100%; }
	.tmp-jy__gap::before, .tmp-jy__gap::after {
		width: 2px; height: 30%; left: 0; right: auto;
		background: repeating-linear-gradient(to bottom, #C88A52 0 5px, transparent 5px 10px);
	}
	.tmp-jy__gap::before { top: 0; }
	.tmp-jy__gap::after { top: auto; bottom: 0; }
	.tmp-jy__flow { padding: 0 18px 16px; }
	.tmp-jy__askin { grid-template-columns: 1fr; padding: 26px 20px; gap: 24px; }
	.tmp-jy__gatein { padding: 28px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.tmp-jy__pulse { display: none; }
	.tmp-jy__board.is-live .tmp-jy__row.is-open .tmp-jy__flow { animation: none; }
	.tmp-jy__q summary::after, .tmp-jy__open { transition: none; }
}
