/* Journey with TIP — front-end styles. Leans on the theme's tokens, with fallbacks. */

.tipjy {
	--jy-navy: var(--tip-navy, #10295B);
	--jy-blue: var(--tip-blue, #2353A9);
	--jy-mid: #1B4693;
	--jy-red: var(--tip-red, #ED1C24);
	--jy-body: var(--tip-body, #4E5A70);
	--jy-muted: var(--tip-muted, #7C89A0);
	--jy-line: var(--tip-border, #E3EAF4);
	--jy-surface: var(--tip-surface, #F4F7FC);
	--jy-chip: var(--tip-chip, #EAF0F9);
	--jy-head: var(--tip-head, 'Plus Jakarta Sans', system-ui, sans-serif);
	color: var(--jy-body);
}

/* ---------- navy header band ---------- */
.tipjy__band { background: var(--jy-navy); margin-bottom: 40px; }
.tipjy__bandinner { padding: 46px 0 30px; }
.tipjy__eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--jy-head); font-size: 12.5px; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase; color: var(--jy-red);
}
.tipjy__rule { width: 26px; height: 3px; background: var(--jy-red); display: block; }
.tipjy__h1 {
	font-family: var(--jy-head); font-size: clamp(30px, 3.6vw, 46px); font-weight: 800;
	letter-spacing: -.026em; line-height: 1.1; color: #fff; margin: 16px 0 0;
}


/* ---------- progress rail ---------- */
.tipjy__progress {
	list-style: none; margin: 34px 0 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 10px 26px;
}
.tipjy__step { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.tipjy__stepnum {
	width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--jy-head); font-size: 13px; font-weight: 700;
	background: rgba(255,255,255,.16); color: #CFDDF3;
}
.tipjy__steplabel { font-family: var(--jy-head); font-size: 13.5px; font-weight: 700; color: #93B3E4; }
.tipjy__step.is-done .tipjy__stepnum { background: var(--jy-blue); color: #fff; }
.tipjy__step.is-current .tipjy__stepnum { background: var(--jy-red); color: #fff; }
.tipjy__step.is-current .tipjy__steplabel { color: #fff; }
@media (max-width: 700px) { .tipjy__steplabel { display: none; } }

/* ---------- panels ---------- */
.tipjy__panel { display: none; }
.tipjy__panel.is-active { display: block; animation: tipjyIn .18s ease-out; }
@keyframes tipjyIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tipjy__title { font-family: var(--jy-head); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--jy-navy); margin: 0; }
.tipjy__lead { font-size: 16.5px; line-height: 1.6; color: var(--jy-body); margin: 10px 0 0; max-width: 640px; }
.tipjy__hint { font-size: 15px; color: var(--jy-muted); margin: 14px 0 0; }

/* ---------- goal grid ---------- */
.tipjy__goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 26px; }
.tipjy__goal {
	display: flex; flex-direction: column; gap: 9px; text-align: left; cursor: pointer;
	border: 1px solid var(--jy-line); border-radius: 13px; padding: 20px; background: #fff;
	font: inherit; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tipjy__goalhead { display: flex; align-items: center; gap: 11px; }
.tipjy__goalicon {
	width: 36px; height: 36px; border-radius: 9px; background: var(--jy-chip);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	color: var(--jy-blue); transition: background .2s ease, color .2s ease;
}
.tipjy__goalname { font-family: var(--jy-head); font-size: 16.5px; font-weight: 700; color: var(--jy-navy); line-height: 1.25; transition: color .2s ease; }
.tipjy__goalblurb { font-size: 14px; color: var(--jy-muted); line-height: 1.5; transition: color .2s ease; }

.tipjy__goal:hover { background: var(--jy-mid); border-color: var(--jy-mid); box-shadow: 0 16px 32px -18px rgba(16,41,91,.45); transform: translateY(-2px); }
.tipjy__goal:hover .tipjy__goalicon { background: rgba(255,255,255,.16); color: #fff; }
.tipjy__goal:hover .tipjy__goalname { color: #fff; }
.tipjy__goal:hover .tipjy__goalblurb { color: #B9C7E8; }
.tipjy__goal.is-picked { border-color: var(--jy-blue); background: var(--jy-surface); }

/* ---------- sliders ---------- */
.tipjy__figure { font-family: var(--jy-head); font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.03em; color: var(--jy-blue); margin: 26px 0 14px; line-height: 1; }
.tipjy__range { width: 100%; max-width: 720px; accent-color: var(--jy-red); height: 26px; }
.tipjy__scale { display: flex; justify-content: space-between; max-width: 720px; font-size: 13px; color: var(--jy-muted); }
.tipjy__field { display: block; max-width: 420px; margin-top: 26px; }
.tipjy__field > span { display: block; font-family: var(--jy-head); font-size: 14px; font-weight: 700; color: var(--jy-navy); margin-bottom: 7px; }
.tipjy__field input {
	width: 100%; border: 1px solid var(--jy-line); border-radius: 9px; padding: 13px 15px;
	font-size: 16px; color: var(--jy-navy); background: #fff;
}
.tipjy__field input:focus { outline: none; border-color: var(--jy-blue); box-shadow: 0 0 0 3px rgba(35,83,169,.14); }

/* ---------- buttons ---------- */
.tipjy__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tipjy__next, .tipjy__back, .tipjy__submit, .tipjy__btn {
	font-family: var(--jy-head); font-weight: 700; font-size: 15.5px; border-radius: 9px;
	padding: 15px 26px; cursor: pointer; border: 1px solid transparent; display: inline-block;
	white-space: nowrap;
}
.tipjy__btn, .tipjy__btn:link, .tipjy__btn:visited, .tipjy__btn:hover, .tipjy__btn:focus,
.tipjy-product, .tipjy-product:hover { text-decoration: none; }
.tipjy__btn:focus-visible { outline: 2px solid var(--jy-blue); outline-offset: 2px; }
.tipjy__next { background: var(--jy-blue); color: #fff; }
.tipjy__next:hover { background: var(--jy-navy); }
.tipjy__next--go { background: var(--jy-red); }
.tipjy__next--go:hover { background: #C8121A; }
.tipjy__back { background: #fff; color: var(--jy-navy); border-color: var(--jy-line); }
.tipjy__back:hover { border-color: var(--jy-blue); background: var(--jy-surface); }

/* ---------- results ---------- */
.tipjy-results__eyebrow { display: block; font-family: var(--jy-head); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--jy-red); }
.tipjy-results__headline { font-family: var(--jy-head); font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.026em; color: var(--jy-navy); margin: 12px 0 0; }
.tipjy-results__verdict { font-size: 17px; line-height: 1.6; color: var(--jy-body); margin: 12px 0 0; max-width: 680px; }
.tipjy-results__verdict.is-tight { color: #A6323A; }

/* section demarcation */
.tipjy-block { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--jy-line); }
.tipjy-block__eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--jy-head); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--jy-red); }
.tipjy-block__eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--jy-red); display: block; }
.tipjy-results__h3 { font-family: var(--jy-head); font-size: 23px; font-weight: 800; letter-spacing: -.015em; color: var(--jy-navy); margin: 12px 0 0; }

.tipjy-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1px; background: var(--jy-line); border: 1px solid var(--jy-line); border-radius: 14px; overflow: hidden; margin-top: 26px; }
.tipjy-summary__cell { background: #fff; padding: 20px 22px; }
.tipjy-summary__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--jy-muted); }
.tipjy-summary__value { display: block; font-family: var(--jy-head); font-size: 20px; font-weight: 800; color: var(--jy-navy); margin-top: 6px; }

.tipjy-chart { margin-top: 26px; border: 1px solid var(--jy-line); border-radius: 14px; padding: 18px 18px 12px; background: #fff; }
.tipjy-chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.tipjy-chart__area { opacity: 0; animation: tipjyFade .7s ease-out .25s forwards; }
.tipjy-chart__dot { opacity: 0; animation: tipjyFade .3s ease-out 1s forwards; }
@keyframes tipjyFade { to { opacity: 1; } }
.tipjy-chart__axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--jy-muted); margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
	.tipjy-chart__area, .tipjy-chart__dot { opacity: 1; animation: none; }
}

.tipjy-timeline { list-style: none; margin: 22px 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--jy-chip); display: flex; flex-direction: column; gap: 26px; }
.tipjy-timeline__item { position: relative; }
.tipjy-timeline__item::before {
	content: ""; position: absolute; left: -33px; top: 4px; width: 12px; height: 12px;
	border-radius: 999px; background: var(--jy-red); box-shadow: 0 0 0 4px #fff;
}
.tipjy-timeline__when { display: block; font-family: var(--jy-head); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--jy-blue); }
.tipjy-timeline__title { display: block; font-family: var(--jy-head); font-size: 18px; font-weight: 700; color: var(--jy-navy); margin-top: 5px; }
.tipjy-timeline__text { display: block; font-size: 15.5px; line-height: 1.6; color: var(--jy-body); margin-top: 5px; max-width: 620px; }

/* matched products */
.tipjy-products__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 18px; }
.tipjy-product {
	display: flex; flex-direction: column; border: 1px solid var(--jy-line); border-radius: 14px;
	padding: 24px; background: #fff;
	transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tipjy-product:hover { background: var(--jy-mid); border-color: var(--jy-mid); box-shadow: 0 16px 32px -18px rgba(16,41,91,.45); transform: translateY(-2px); }
.tipjy-product__head { display: flex; align-items: center; gap: 12px; }
.tipjy-product__icon {
	width: 46px; height: 46px; border-radius: 999px; background: var(--jy-chip); color: var(--jy-blue);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	transition: background .2s ease, color .2s ease;
}
.tipjy-product:hover .tipjy-product__icon { background: rgba(255,255,255,.16); color: #fff; }
.tipjy-product__name { font-family: var(--jy-head); font-size: 16.5px; font-weight: 700; color: var(--jy-navy); line-height: 1.3; transition: color .2s ease; }
.tipjy-product:hover .tipjy-product__name { color: #fff; }
.tipjy-product__text { font-size: 15px; line-height: 1.55; color: var(--jy-muted); margin-top: 12px; flex: 1; transition: color .2s ease; }
.tipjy-product:hover .tipjy-product__text { color: #B9C7E8; }
.tipjy-product__more {
	display: inline-flex; align-items: center; gap: 6px; background: var(--jy-chip); color: var(--jy-blue);
	font-family: var(--jy-head); font-weight: 700; font-size: 13.5px; padding: 9px 14px;
	border-radius: 8px; margin-top: 14px; width: fit-content;
	transition: background .2s ease, color .2s ease;
}
.tipjy-product:hover .tipjy-product__more { background: rgba(255,255,255,.18); color: #fff; }

.tipjy__disclaimer { margin-top: 26px; padding: 16px 0 0; border-top: 1px solid #EEF2F8; font-size: 13px; line-height: 1.6; color: #8390A8; }
.tipjy__disclaimer p { margin: 0; }

/* email capture */
.tipjy__send { margin-top: 52px; background: var(--jy-surface); border: 1px solid var(--jy-line); border-radius: 16px; padding: 32px; }
.tipjy__sendtitle { font-family: var(--jy-head); font-size: 23px; font-weight: 800; letter-spacing: -.015em; color: var(--jy-navy); margin: 0; }
.tipjy__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 20px; align-items: end; }
.tipjy__form .tipjy__field { margin-top: 0; max-width: none; }
.tipjy__check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--jy-body); }
.tipjy__submit { background: var(--jy-red); color: #fff; border: 0; grid-column: 1 / -1; width: fit-content; padding: 15px 28px; }
.tipjy__submit:hover { background: #C8121A; }
.tipjy__submit[disabled] { opacity: .6; cursor: default; }
.tipjy__status { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--jy-muted); }
.tipjy__status.is-good { color: #157347; font-weight: 600; }
.tipjy__status.is-bad { color: #C8121A; font-weight: 600; }
.tipjy__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tipjy__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--jy-line); }
.tipjy__btn--red { background: var(--jy-red); color: #fff; }
.tipjy__btn--red:hover { background: #C8121A; color: #fff; }
.tipjy__btn--ghost { background: #fff; color: var(--jy-navy); border-color: var(--jy-line); }
.tipjy__btn--ghost:hover { border-color: var(--jy-blue); background: var(--jy-surface); }
.tipjy__btn--plain { background: none; border: 0; color: var(--jy-muted); padding-left: 8px; padding-right: 8px; }
.tipjy__btn--plain:hover { color: var(--jy-red); }

/* ---------- homepage teaser ---------- */
.tipjy-teaser {
	background: #152F6B; border-radius: 16px; padding: 26px 32px; color: #fff;
	display: flex; flex-wrap: wrap; gap: 22px 32px; align-items: center; justify-content: space-between;
}
.tipjy-teaser__body { max-width: 760px; }
.tipjy-teaser__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--tip-head, 'Plus Jakarta Sans', sans-serif); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #8FADE0; }
.tipjy-teaser__title { font-family: var(--tip-head, 'Plus Jakarta Sans', sans-serif); font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: #fff; margin: 8px 0 0; }
.tipjy-teaser__text { font-size: 15.5px; line-height: 1.55; color: #CFDDF3; margin: 8px 0 0; max-width: 620px; }
.tipjy-teaser__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tipjy-teaser__chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
	font-size: 13.5px; font-weight: 600; color: #E6EDF9; text-decoration: none;
}
.tipjy-teaser__chip:hover { background: rgba(255,255,255,.18); color: #fff; }
.tipjy-teaser__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.tipjy-teaser__btn {
	background: var(--tip-red, #ED1C24); color: #fff; text-decoration: none;
	font-family: var(--tip-head, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 15px;
	padding: 14px 24px; border-radius: 9px; white-space: nowrap;
}
.tipjy-teaser__btn:hover { background: #fff; color: #152F6B; }
.tipjy-teaser__note { font-size: 13px; color: #9DB6E2; }

@media (max-width: 900px) {
	.tipjy-teaser { padding: 24px; }
	.tipjy__band { margin-bottom: 30px; }
	.tipjy__bandinner { padding: 32px 0 24px; }
	.tipjy-block { margin-top: 38px; padding-top: 26px; }
	.tipjy__send { margin-top: 38px; padding: 24px; }
	.tipjy__actions { margin-top: 32px; padding-top: 24px; }
}

/* ---------- print: the plan only ---------- */
@media print {
	body.tipjy-printing .tipjy__progress,
	body.tipjy-printing .tipjy__band,
	body.tipjy-printing .tipjy__send,
	body.tipjy-printing .tipjy__actions,
	body.tipjy-printing .tip-navbar,
	body.tipjy-printing .tip-brandbar,
	body.tipjy-printing .tip-footer { display: none !important; }
	body.tipjy-printing .tipjy__panel { display: none !important; }
	body.tipjy-printing .tipjy__panel.tipjy__results { display: block !important; }
	.tipjy-product, .tipjy-summary, .tipjy-chart { break-inside: avoid; }
}

/* declared last so it wins over the generic .tipjy__lead body colour */
.tipjy .tipjy__lead--band { color: #CFDDF3; font-size: 17.5px; max-width: none; }
@media (min-width: 1000px) { .tipjy .tipjy__lead--band { white-space: nowrap; } }
/* the band spans the content width even inside a theme's prose column */
.tipjy__band { margin-left: 0; margin-right: 0; }
.tipjy__bandinner { max-width: 1180px; margin: 0 auto; padding: 46px clamp(20px,4vw,48px) 30px; }


/* Full-bleed band. Using margins alone keeps the box's own left edge as the
   reference, so the inner container still centres on the site's measure —
   the left/right + negative-margin combination over-shifts and pins the copy
   to the viewport edge. */
.tipjy__band {
	width: auto;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
/* The inner container follows the host theme's own measure (--tip-wrap / --tip-gap
   when present) so the copy lines up with the navigation above it. */
.tipjy .tipjy__bandinner {
	max-width: var(--tip-wrap, 1180px);
	margin: 0 auto;
	padding-top: 46px;
	padding-bottom: 30px;
	padding-left: var(--tip-gap, clamp(20px, 4vw, 48px));
	padding-right: var(--tip-gap, clamp(20px, 4vw, 48px));
}
/* the intro sits on navy, so it must never inherit the body grey */
.tipjy .tipjy__band .tipjy__lead { color: #CFDDF3 !important; }

/* the panels below the band share the band's measure */
.tipjy__panel {
	max-width: var(--tip-wrap, 1180px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--tip-gap, clamp(20px, 4vw, 48px));
	padding-right: var(--tip-gap, clamp(20px, 4vw, 48px));
}

/* the email capture sits after the action buttons */
.tipjy__actions { margin-top: 40px; }
.tipjy__send { margin-top: 32px; }
