/* /how-it-works/ only. No text smaller than 13px (.8125rem). */

/* The shared sample section: the homepage's theme colours, so it matches there. */
.how-it-works-page .sample-intro{--plum:#2b202e;--satin-white:#faf7f2}

.how-it-works-page .hiw-main{background:#faf7f2;color:#2b202e}
.how-it-works-page .hiw-section{padding:clamp(3.5rem,6vw,6rem) 1.25rem}
.how-it-works-page .hiw-inner{max-width:48rem;margin-inline:auto}
.how-it-works-page .hiw-main h1,.how-it-works-page .hiw-section h2{font-family:'DM Serif Display',Georgia,serif;font-weight:400;color:#2b202e;text-wrap:balance}
.how-it-works-page .hiw-main h1{font-size:clamp(2.5rem,5.5vw,4.25rem);line-height:1.1;letter-spacing:-.025em;text-align:center}
.how-it-works-page .hiw-lead{max-width:38rem;margin:1.25rem auto 0;text-align:center;font-size:clamp(1.0625rem,1.4vw,1.25rem);line-height:1.65;text-wrap:pretty}
.how-it-works-page .hiw-intro{padding-bottom:clamp(1rem,3vw,2.5rem)}
.how-it-works-page .hiw-shared h2,.how-it-works-page .hiw-questions h2{margin:0 0 1.75rem;font-size:clamp(2rem,4vw,3rem);line-height:1.15}

/* Numbered steps */
.how-it-works-page .hiw-steps{counter-reset:hiw-step;list-style:none;margin:clamp(2.5rem,5vw,3.5rem) 0 0;padding:0}
.how-it-works-page .hiw-steps li{counter-increment:hiw-step;position:relative;min-height:2.5rem;padding:1.75rem 0 1.75rem 3.75rem;border-top:1px solid #2b202e29}
.how-it-works-page .hiw-steps li::before{content:counter(hiw-step);position:absolute;left:0;top:1.75rem;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:50%;background:#2b202e;color:#faf7f2;font:600 1rem/1 'Plus Jakarta Sans',Arial,sans-serif}
.how-it-works-page .hiw-steps h2{margin:0 0 .5rem;font-size:clamp(1.5rem,2.4vw,1.875rem);line-height:1.25;letter-spacing:-.01em}
.how-it-works-page .hiw-steps p{font-size:1rem;line-height:1.7}
/* A thin line joins the step numbers: one segment per step, from its number to the next. */
.how-it-works-page .hiw-steps li:not(:last-child)::after{content:"";position:absolute;left:calc(1.25rem - 1px);top:3rem;width:2px;height:100%;background:#2b202e;transform-origin:top;pointer-events:none}
.how-it-works-page .hiw-steps li::before{z-index:1}
@media screen and (prefers-reduced-motion:no-preference){
 html.cl-motion .how-it-works-page .hiw-steps li[data-cl-step]::after{transform:scaleY(var(--cl-draw,1))}
 html.cl-motion .how-it-works-page .hiw-steps li[data-cl-step]::before{transition:opacity .35s ease-out,transform .35s ease-out}
 html.cl-motion .how-it-works-page .hiw-steps li[data-cl-step="wait"]::before{opacity:.6;transform:scale(.6)}
}

/* The site turns synthetic styles off and ships no italic font file, so allow a slanted style here. */
.how-it-works-page .hiw-steps .hiw-note{margin-top:.75rem;font-style:italic;font-synthesis:style;font-size:.9375rem;color:#675866}

/* What's shared table */
.how-it-works-page .hiw-table{overflow-x:auto;max-width:100%}
.how-it-works-page .hiw-table:focus-visible{outline:2px solid #84638b;outline-offset:3px}
.how-it-works-page .hiw-table table{width:100%;border-collapse:collapse;text-align:left;font-size:.9375rem;line-height:1.5}
.how-it-works-page .hiw-table th,.how-it-works-page .hiw-table td{padding:.875rem .75rem;vertical-align:top;border-bottom:1px solid #2b202e29}
.how-it-works-page .hiw-table thead th{background:#e9e1e5;font-weight:600}
.how-it-works-page .hiw-table thead td{background:#e9e1e5}
.how-it-works-page .hiw-table tbody th{width:40%;font-weight:500;white-space:normal}
.how-it-works-page .hiw-table-note{margin-top:1.25rem;font-size:.9375rem;color:#675866}
.how-it-works-page .hiw-main a:not(.closing-apply){color:inherit;text-decoration:underline;text-underline-offset:.25em;overflow-wrap:anywhere}

/* Common questions: a plain list */
.how-it-works-page .hiw-questions dl{margin:0 0 1.75rem}
.how-it-works-page .hiw-compare{margin-top:.75rem}
.how-it-works-page .hiw-questions dl>div{padding:1.25rem 0;border-top:1px solid #2b202e29}
.how-it-works-page .hiw-questions dt{font-weight:600;font-size:1.0625rem;line-height:1.5}
.how-it-works-page .hiw-questions dd{margin:.375rem 0 0;font-size:1rem;line-height:1.7}

/* Closing: the homepage closing layout (closing-invitation.css) with its dark plum. */
.how-it-works-page .hiw-main .typographic-close{background:#211b26;padding-inline:1.25rem}
.how-it-works-page .hiw-close h2{margin-bottom:1.5rem;color:#f0e5d6;text-wrap:balance}
.how-it-works-page .hiw-promise{max-width:34rem;margin-bottom:2.25rem;font-size:clamp(1.0625rem,1.5vw,1.3125rem);line-height:1.65;color:#f0e5d6;text-wrap:balance}
/* "Free to join." as in the homepage hero: under the button below 760px, beside it from 760px. */
.how-it-works-page .hiw-apply-row{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
@media(min-width:760px){.how-it-works-page .hiw-apply-row{flex-direction:row;gap:16px}}
.how-it-works-page .hiw-free{margin:0;font-size:.875rem;font-weight:400;line-height:1.5;color:var(--ivory)}
.how-it-works-page .hiw-contact{margin-top:2.25rem;font-size:.9375rem;line-height:1.7;color:#f0e5d6}

/* Phones: tighter table cells so the four columns fit; the wrapper scrolls only if they can't. */
@media(max-width:599px){.how-it-works-page .hiw-steps li{padding-left:3.25rem}.how-it-works-page .hiw-shared{padding-inline:1rem}.how-it-works-page .hiw-table table{font-size:.8125rem}.how-it-works-page .hiw-table th,.how-it-works-page .hiw-table td{padding:.625rem .25rem}.how-it-works-page .hiw-table tbody th{width:36%;padding-right:.5rem}}
/* What's shared table (how-it-works only): column labels appear in each cell on phones, where rows stack so the table fits at 320px without sideways scrolling. */
.how-it-works-page .hiw-share-table .hiw-cell-label{display:none}
@media(max-width:599px){
 .how-it-works-page .hiw-share-table{overflow:visible}
 .how-it-works-page .hiw-share-table table,.how-it-works-page .hiw-share-table tbody,.how-it-works-page .hiw-share-table tr{display:block}
 .how-it-works-page .hiw-share-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .how-it-works-page .hiw-share-table table{font-size:.9375rem}
 .how-it-works-page .hiw-share-table tr{padding:1rem 0;border-bottom:1px solid #2b202e29}
 .how-it-works-page .hiw-share-table tbody th,.how-it-works-page .hiw-share-table tbody td{display:block;width:auto;padding:0;border:0;overflow-wrap:anywhere}
 .how-it-works-page .hiw-share-table tbody th{font-weight:700}
 .how-it-works-page .hiw-share-table tbody td{display:flex;justify-content:space-between;gap:1rem;margin-top:.5rem}
 .how-it-works-page .hiw-share-table .hiw-cell-label{display:block;font-size:.8125rem;font-weight:600;color:#675866}
}
