/**
 * "How it works" page — hero, step strip, journey timeline, FAQ, finale CTA.
 */

.hiw-hero { padding: clamp(150px, 19vh, 224px) 0 clamp(80px, 10vh, 120px); position: relative; }
.hiw-hero .chap { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-4); }
.hiw-hero .chap .line { width: 42px; height: 1px; background: var(--ink); }
.hiw-hero h1 { font: 700 clamp(46px, 7.4vw, 108px)/0.98 var(--serif); letter-spacing: -.028em; max-width: 15ch; }
.hiw-hero h1 em { font-style: italic; font-weight: 500; }
.hiw-hero .lede { margin-top: var(--s-4); max-width: 54ch; font: 400 clamp(17px, 1.4vw, 20px)/1.62 var(--sans); color: var(--sec); }
.hiw-hero .cta-row { margin-top: var(--s-5); display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.hiw-hero .note {
	position: absolute; right: 3%; top: 36%;
	font: 600 25px/1.25 var(--hand); color: var(--sec);
	transform: rotate(-5deg); max-width: 190px; display: none;
}
@media (min-width: 1180px) { .hiw-hero .note { display: block; } }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.strip .inner { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: var(--s-4) 40px; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; }
.strip .lead { font: 500 clamp(18px, 1.8vw, 24px)/1.4 var(--serif); letter-spacing: -.01em; color: var(--ink); max-width: 40ch; }
.strip .lead em { font-style: italic; }
.strip .tag { font: 600 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sec); white-space: nowrap; }

.journey { position: relative; padding: clamp(96px, 12vh, 150px) 0 0; }
.journey .head { max-width: var(--maxw); margin: 0 auto; padding: 0 40px var(--s-6); }
.journey .head h2 { margin-top: var(--s-3); font: 700 clamp(30px, 4.2vw, 56px)/1.04 var(--serif); letter-spacing: -.02em; max-width: 18ch; }
.journey .head p { margin-top: var(--s-2); font: 400 17px/1.6 var(--sans); color: var(--sec); max-width: 46ch; }
.journey .head p .hand { font-family: var(--hand); font-size: 20px; }

.jgrid { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 42fr 58fr; gap: 60px; align-items: start; }
.jsteps { position: sticky; top: 140px; align-self: start; }
.jprog { position: relative; padding-left: 30px; }
.jprog::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.jprog .fill { position: absolute; left: 5px; top: 8px; width: 2px; background: var(--ink); height: 0; transition: height .5s var(--ease); }
.jstep { position: relative; padding: 22px 0; cursor: pointer; opacity: .34; transition: opacity .5s var(--ease); }
.jstep::before {
	content: ""; position: absolute; left: -30px; top: 30px; width: 12px; height: 12px;
	border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: all .5s var(--ease);
}
.jstep.on { opacity: 1; }
.jstep.on::before { background: var(--ink); border-color: var(--ink); transform: scale(1.2); }
.jstep .num { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sec); }
.jstep .t { margin-top: 8px; font: 700 clamp(22px, 2.5vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; }
.jstep .d {
	margin-top: 9px; font: 400 16px/1.6 var(--sans); color: var(--sec); max-width: 42ch;
	max-height: 0; overflow: hidden; opacity: 0;
	transition: max-height .55s var(--ease), opacity .45s var(--ease), margin .45s;
}
.jstep.on .d { max-height: 160px; opacity: 1; }
.jpanels { position: relative; }
.jpanel { min-height: 82vh; display: flex; align-items: center; padding: 30px 0; }

.card { position: relative; width: 100%; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; }
.jpanel .card { opacity: .5; transform: translateY(16px) scale(.99); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.jpanel.active .card { opacity: 1; transform: none; box-shadow: var(--sh-3); }
.card .top { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: #fcfcfb; }
.card .top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.card .top .lbl { margin-left: auto; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sec); }
.card .body { padding: var(--s-4) var(--s-4) calc(var(--s-4) + 4px); min-height: 380px; }
.card .kicker { font: 600 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sec); }
.card h3 { margin-top: 14px; font: 700 clamp(24px, 2.6vw, 36px)/1.08 var(--serif); letter-spacing: -.015em; }
.card p { margin-top: 14px; font: 400 16px/1.6 var(--sans); color: var(--sec); max-width: 50ch; }
.card .demo { margin-top: var(--s-4); }

.mk-field { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 5px; background: var(--bg); }
.mk-field.mk-field--row { flex-direction: row; align-items: center; justify-content: space-between; }
.mk-field .fl { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sec); }
.mk-field .fv { font: 500 15px var(--sans); color: var(--ink); }
.mk-pen { display: inline-block; font: 600 20px var(--hand); color: var(--ink); }
.mk-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 13px var(--sans); }
.mk-doc .ln { height: 9px; border-radius: 6px; background: var(--line); margin-top: 12px; }
.mk-doc .ln:nth-child(1) { width: 62%; background: var(--ink); }
.mk-doc .ln:nth-child(odd) { width: 94%; }
.mk-doc .ln:nth-child(even) { width: 78%; }
.mk-doc .quote { margin-top: 18px; font: 600 21px var(--hand); color: var(--ink); }
.mk-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.mk-tag { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px var(--sans); color: var(--sec); background: var(--bg); }
.mk-tag.hot { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mk-people { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.mk-person { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.mk-person.is-self { border-color: var(--ink); }
.mk-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--sans); background: var(--line); color: var(--ink); flex: none; }
.mk-av.is-self { background: var(--ink); color: var(--paper); }
.mk-person .fv.is-strong { font-weight: 600; }

.jstep-card { display: none; }

@media (max-width: 860px) {
	.jgrid { grid-template-columns: 1fr; gap: 0; }
	.jsteps { position: static; top: auto; }
	.jpanels { display: none; }
	.jstep { opacity: 1; padding: var(--s-4) 0; border-top: 1px solid var(--line); }
	.jstep .d { max-height: none; opacity: 1; transition: none; }
	.jstep::before { display: none; }
	.jprog { padding-left: 0; }
	.jprog::before, .jprog .fill { display: none; }
	.jstep-card { display: block; margin-top: var(--s-3); }
	.jstep-card .card { box-shadow: var(--sh-2); }
}

.faq { padding: clamp(96px, 12vh, 150px) 0 clamp(112px, 14vh, 170px); border-top: 1px solid var(--line); }
.faq-head h2 { margin-top: var(--s-3); font: 700 clamp(28px, 3.6vw, 48px)/1.05 var(--serif); letter-spacing: -.02em; }
.faq-list { margin-top: var(--s-5); max-width: 760px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa-q {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
	gap: 20px; padding: var(--s-4) 4px; font: 600 clamp(17px, 1.7vw, 21px)/1.35 var(--serif);
	letter-spacing: -.01em; color: var(--ink);
}
.qa-q::-webkit-details-marker { display: none; }
.qa-ic { position: relative; width: 18px; height: 18px; flex: none; }
.qa-ic::before, .qa-ic::after {
	content: ""; position: absolute; background: var(--ink);
	transition: transform .35s var(--ease), opacity .35s;
}
.qa-ic::before { left: 0; top: 8px; width: 18px; height: 1.6px; }
.qa-ic::after { left: 8px; top: 0; width: 1.6px; height: 18px; }
.qa[open] .qa-ic::after { transform: scaleY(0); opacity: 0; }
.qa-a { overflow: hidden; max-height: 0; transition: max-height .45s var(--ease); }
.qa[open] .qa-a { max-height: 260px; }
.qa-a p { padding: 0 4px var(--s-4); font: 400 16px/1.66 var(--sans); color: var(--sec); max-width: 60ch; }

.finale {
	background: var(--ink); color: var(--paper); text-align: center;
	padding: clamp(120px, 15vh, 180px) 0; border-top-left-radius: 56px; border-top-right-radius: 56px;
	position: relative; overflow: hidden;
}
.finale .ghost {
	position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%);
	font: 800 clamp(150px, 24vw, 400px)/1 var(--logo); letter-spacing: -.05em;
	color: #fff; opacity: .045; pointer-events: none; user-select: none;
}
.finale .inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 40px; }
.finale h2 { margin-top: var(--s-4); font: 700 clamp(36px, 6vw, 84px)/0.98 var(--serif); letter-spacing: -.022em; }
.finale h2 em { font-style: italic; font-weight: 500; }
.finale p { margin: var(--s-4) auto 0; max-width: 46ch; font: 400 clamp(16px, 1.4vw, 19px)/1.6 var(--sans); color: #9a9a98; }
.finale .cta-row { margin-top: var(--s-5); display: flex; justify-content: center; }
.finale .eyebrow { color: #8a8a88; letter-spacing: .24em; }

/*
 * Additive rules for the ACF/repeater-driven optional card features
 * (badge, optional button, image-type cards) and the reusable decorative
 * elements layer — none of these appear unless an editor sets them, so the
 * default page is visually unchanged.
 */
.card .badge { display: inline-block; margin-bottom: 10px; }
.card .cta-inline { margin-top: 16px; }
.hiw-card-image { display: block; width: 100%; border-radius: var(--r-sm); }

/* Multiple cards within one step: stack with the same rhythm as the single-card default. */
.jstep-card .card + .card,
.jpanel .card + .card { margin-top: var(--s-4); }
.card--width-half { max-width: 50%; }
.card--width-third { max-width: 33.333%; }
.card--align-center { margin-left: auto; margin-right: auto; }
.card--align-right { margin-left: auto; }
@media (max-width: 860px) {
	.card--width-half, .card--width-third { max-width: 100%; }
}

/* Standardize each section's own side gutter down to the 20px mobile
   container padding used site-wide. */
@media (max-width: 760px) {
	.strip .inner,
	.journey .head,
	.jgrid,
	.finale .inner { padding-left: 20px; padding-right: 20px; }
}
