/* /how-it-works, second pass (2026-11-30) from George's full-page capture and screen recording of
   klarna.com/au. What is taken from it: a tall, narrow, heavy headline face; a wide photo tile with
   the headline on it; a quiet "trust" row with one highlighted word and small numbers; a block
   where three headings take turns as you scroll and the picture follows; square tiles with a label
   pill at the bottom; a dark phone that plays a short loop by itself; a closing tile that slides
   in from the right; and a huge wordmark in the footer. The words and screens are ours. */
:root { --hiw-ink: #17120f; --hiw-paper: #fffdf8; --hiw-sand: #f4efe4; --hiw-yellow: #ffd43b; --hiw-grey: #a7a199; }
body { background: #fff; color: var(--hiw-ink); }
.hiw { color: var(--hiw-ink); }
.hiw-wrap { width: min(100% - 40px, 1240px); margin: 0 auto; }
.hiw-narrow { width: min(100% - 40px, 980px); margin: 0 auto; }
.hiw h1, .hiw h2, .hiw h3, .hiw-num b, .hiw-word { font-family: 'Archivo', var(--font-body, inherit); font-stretch: 68%; font-weight: 800; letter-spacing: -0.015em; line-height: 0.96; }
.hiw h1 { margin: 0; font-size: clamp(3.2rem, 8.6vw, 7rem); }
.hiw h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 3.9rem); text-wrap: balance; }
.hiw p { margin: 0; }
.hiw-sub { margin-top: 16px !important; font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.45; font-weight: 500; color: #4b453f; }
.hiw-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--hiw-ink); color: #fff; font-size: 15.5px; font-weight: 700; text-decoration: none; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hiw-btn:hover { transform: scale(1.06); }
.hiw-btn.is-yellow { background: var(--hiw-yellow); color: var(--hiw-ink); }
.hiw-center { text-align: center; }
.hiw-center .hiw-sub { max-width: 44ch; margin-inline: auto; }
.hiw-sec { padding: clamp(80px, 11vw, 150px) 0 0; }

/* 1. Photo tile with the headline on it */
.hiw-top { padding: 14px 0 0; }
.hiw-hero { position: relative; display: grid; align-items: center; min-height: clamp(460px, 46vw, 640px); border-radius: 28px; overflow: hidden; background: #f1b9c2; }
.hiw-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 30%; }
.hiw-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(241 185 194 / 0.96) 0%, rgb(241 185 194 / 0.85) 30%, rgb(241 185 194 / 0) 58%); }
.hiw-hero-copy { position: relative; z-index: 1; width: min(100%, 560px); padding: clamp(26px, 4.4vw, 60px); }
.hiw-hero-copy .hiw-sub { max-width: 32ch; color: var(--hiw-ink); }
.hiw-hero-copy .hiw-btn { margin-top: 22px; }
.hiw-ready .hiw-hero > img { animation: hiw-zoom 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes hiw-zoom { from { transform: scale(1.12); } to { transform: none; } }
.hiw-ready .hiw-hero-copy > * { animation: hiw-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hiw-ready .hiw-hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hiw-ready .hiw-hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
@keyframes hiw-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
   .hiw-hero { align-items: end; min-height: 600px; }
   .hiw-hero > img { object-position: 58% 0; height: 62%; }
   .hiw-hero::after { background: linear-gradient(180deg, rgb(241 185 194 / 0) 34%, rgb(241 185 194 / 1) 58%); }
}
/* 2. Trust row */
.hiw-trust { display: grid; gap: 22px; align-items: center; padding: 34px 0 0; }
@media (min-width: 900px) { .hiw-trust { grid-template-columns: 1fr auto; padding-inline: 6%; } }
.hiw-word { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.hiw-word mark { border-radius: 6px; background: var(--hiw-yellow); color: inherit; padding: 0 0.16em; }
.hiw-nums { display: flex; flex-wrap: wrap; gap: 18px clamp(22px, 4vw, 54px); margin: 0; padding: 0; list-style: none; }
.hiw-num { text-align: center; }
.hiw-num b { display: block; font-size: clamp(2rem, 3.4vw, 2.7rem); }
.hiw-num span { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: #6b665c; }
/* 3. Three headings take turns as you scroll; the picture follows */
.hiw-turn-grid { display: grid; gap: 26px; margin-top: 44px; }
.hiw-turn-pic { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--hiw-sand); }
.hiw-turn-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.hiw-turn-pic img.is-on { opacity: 1; transform: none; }
.hiw-chip { position: absolute; z-index: 2; left: 50%; top: 46%; display: grid; gap: 8px; width: min(74%, 250px); transform: translate(-50%, -50%); }
.hiw-chip span { display: none; align-items: center; justify-content: space-between; gap: 10px; border-radius: 14px; background: rgb(23 18 15 / 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; padding: 13px 16px; font-size: 16px; font-weight: 600; }
.hiw-chip span b { font-weight: 800; }
.hiw-chip span.is-main { background: var(--hiw-yellow); color: var(--hiw-ink); }
.hiw-chip[data-on='0'] span[data-for='0'], .hiw-chip[data-on='1'] span[data-for='1'], .hiw-chip[data-on='2'] span[data-for='2'] { display: flex; animation: hiw-up 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.hiw-chip span:nth-child(even) { animation-delay: 0.12s !important; }
.hiw-pill { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); border-radius: 999px; background: rgb(23 18 15 / 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; padding: 6px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hiw-turn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.hiw-turn-list li { cursor: pointer; }
.hiw-turn-list h3 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--hiw-grey); transition: color 0.4s ease; }
.hiw-turn-list p { max-height: 0; overflow: hidden; opacity: 0; font-size: 16.5px; line-height: 1.45; font-weight: 500; color: #4b453f; transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin 0.4s ease; }
.hiw-turn-list li.is-on h3 { color: var(--hiw-ink); }
.hiw-turn-list li.is-on p { max-height: 140px; opacity: 1; margin: 10px 0 8px; }
.hiw-turn-bar { display: none; }
@media (min-width: 900px) {
   .hiw-turn-grid { grid-template-columns: 26px minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 34px; align-items: start; }
   .hiw-turn-bar { position: relative; display: block; align-self: stretch; }
   .hiw-turn-bar i { position: absolute; left: 12px; top: 40%; width: 4px; height: 44px; border-radius: 4px; background: #e6e1d8; overflow: hidden; }
   .hiw-turn-bar i::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--p, 33%); border-radius: 4px; background: var(--hiw-ink); transition: height 0.4s ease; }
   .hiw-turn.is-sticky .hiw-turn-in { position: sticky; top: var(--turn-top, 100px); }
   .hiw-turn-list { padding-top: 10px; }
}
/* 4. The five steps as tiles with a label pill at the bottom */
.hiw-steps { display: grid; gap: 14px; margin: 44px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .hiw-steps { grid-template-columns: repeat(6, 1fr); } .hiw-steps li { grid-column: span 2; } .hiw-steps li:nth-child(n + 4) { grid-column: span 3; } }
.hiw-step-tile { position: relative; display: grid; justify-items: center; aspect-ratio: 1 / 1.02; border-radius: 22px; overflow: hidden; padding-top: 12%; background: #efece6; }
.hiw-steps li:nth-child(1) .hiw-step-tile { background: #fff0b8; }
.hiw-steps li:nth-child(2) .hiw-step-tile { background: #dff3e8; }
.hiw-steps li:nth-child(3) .hiw-step-tile { background: #e9e2ff; }
.hiw-steps li:nth-child(4) .hiw-step-tile { background: #ffe1d2; aspect-ratio: 1.5 / 1.02; padding-top: 7%; }
.hiw-steps li:nth-child(5) .hiw-step-tile { background: #ffe1ef; aspect-ratio: 1.5 / 1.02; padding-top: 7%; }
.hiw-phone { margin: 0; width: 56%; max-width: 250px; aspect-ratio: 9 / 18.5; overflow: hidden; border: 8px solid #fff; border-radius: 34px; background: #fff; box-shadow: 0 24px 46px rgb(23 18 15 / 0.2); transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.hiw-steps li:nth-child(n + 4) .hiw-phone { width: 38%; }
.hiw-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hiw-steps li:hover .hiw-phone { transform: translateY(-14px) rotate(-2deg); }
.hiw-step-n { position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--hiw-ink); color: #fff; font-size: 17px; font-weight: 800; }
.hiw-steps h3 { margin: 16px 0 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.hiw-steps p { margin-top: 6px; font-size: 15.5px; line-height: 1.4; font-weight: 500; color: #4b453f; max-width: 40ch; }
.hiw-ready .hiw-steps li { opacity: 0; transform: translateY(34px); transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.hiw-ready .hiw-steps.is-seen li { opacity: 1; transform: none; }
.hiw-ready .hiw-steps.is-seen li:nth-child(2) { transition-delay: 0.08s; }
.hiw-ready .hiw-steps.is-seen li:nth-child(3) { transition-delay: 0.16s; }
.hiw-ready .hiw-steps.is-seen li:nth-child(4) { transition-delay: 0.24s; }
.hiw-ready .hiw-steps.is-seen li:nth-child(5) { transition-delay: 0.32s; }
/* 5. Text left, a dark phone that plays a loop on the right */
.hiw-loop { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .hiw-loop { grid-template-columns: 1fr 1fr; } }
.hiw-loop .hiw-btn { margin-top: 22px; }
.hiw-loop-phone { position: relative; justify-self: center; width: min(64vw, 270px); aspect-ratio: 9 / 19; border-radius: 22px; overflow: hidden; background: #0c0a14; box-shadow: 0 30px 60px rgb(23 18 15 / 0.22); }
.hiw-loop-phone img { position: absolute; inset: 14px 10px; width: calc(100% - 20px); height: calc(100% - 28px); border-radius: 14px; object-fit: cover; object-position: top; opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.hiw-loop-phone img.is-on { opacity: 1; transform: none; }
.hiw-loop-logo { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.5s ease; }
.hiw-loop-logo span { border-radius: 12px; background: var(--hiw-yellow); color: var(--hiw-ink); padding: 8px 16px; font-family: 'Archivo', sans-serif; font-stretch: 68%; font-size: 30px; font-weight: 800; }
.hiw-loop-logo.is-on { opacity: 1; }
/* 6. What you need / good to know */
.hiw-need-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .hiw-need-grid { grid-template-columns: 1fr 1fr; } }
.hiw-box { border-radius: 28px; padding: clamp(28px, 3.6vw, 48px); background: var(--hiw-sand); }
.hiw-box.is-dark { background: #0c0a14; color: #fff9ec; }
.hiw-box h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.hiw-list { list-style: none; margin: 22px 0 0; padding: 0; }
.hiw-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; border-top: 1.5px solid rgb(23 18 15 / 0.12); padding: 16px 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.hiw-box.is-dark .hiw-list li { border-top-color: rgb(255 249 236 / 0.18); }
.hiw-list li span.e { font-size: 22px; line-height: 1.15; }
.hiw-list li small { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 500; opacity: 0.75; }
/* 7. Questions */
.hiw-faq-grid { display: grid; gap: 26px; }
@media (min-width: 900px) { .hiw-faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 60px; } }
.hiw-faq details { border-top: 1.5px solid rgb(23 18 15 / 0.14); }
.hiw-faq details:last-of-type { border-bottom: 1.5px solid rgb(23 18 15 / 0.14); }
.hiw-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; font-size: clamp(1.08rem, 1.9vw, 1.3rem); font-weight: 700; cursor: pointer; list-style: none; }
.hiw-faq summary::-webkit-details-marker { display: none; }
.hiw-faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hiw-sand); font-size: 22px; font-weight: 500; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease; }
.hiw-faq details[open] summary::after { transform: rotate(45deg); background: var(--hiw-yellow); }
.hiw-faq details p { margin: 0 0 22px; max-width: 58ch; font-size: 16.5px; line-height: 1.5; font-weight: 500; color: #4b453f; }
/* 8. Closing tile: slides in from the right, flush with the right edge */
.hiw-end { padding: clamp(80px, 11vw, 150px) 0 96px; overflow: hidden; }
.hiw-end-tile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; width: min(92%, 860px); margin-left: auto; border-radius: 60px 0 0 60px; background: var(--hiw-yellow); padding: clamp(34px, 5vw, 64px) clamp(26px, 5vw, 70px); }
.hiw-end-tile h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 9ch; }
.hiw-end-tile p { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.hiw-ready .hiw-end-tile { transform: translateX(105%); transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.hiw-ready .hiw-end.is-seen .hiw-end-tile { transform: none; }
/* Footer: the name written huge, as on Klarna */
.hiw-foot-word { display: block; margin: 46px 0 0; font-family: 'Archivo', sans-serif; font-stretch: 100%; font-size: clamp(3.4rem, 15.5vw, 13rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.82; color: #fff9ec; white-space: nowrap; }
/* These animations play even when the device asks for reduced motion (George, 2026-11-29). */
