/* MySmartQR website v3.0: soft monochrome, layered depth, motion with GSAP. */
:root {
	--paper: #f3f4f6;
	--surface: #ffffff;
	--ink: #262a30;
	--muted: #6b717a;
	--line: #dde0e5;
	--soft: #e9ebef;
	--glow: #fbfbfc;
	--qr: #000000;
	--lift: 0 1px 2px rgba(30, 36, 44, .05), 0 18px 40px -12px rgba(30, 36, 44, .16);
	--font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--max: 1320px;
	--gutter: clamp(20px, 5vw, 48px);
	--radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--font); font-weight: 400; overflow-x: hidden; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { margin: 0; font-variation-settings: "wdth" 108; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.04; font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: 600; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 60ch; }
.lead { font-size: clamp(18px, 1.9vw, 20px); line-height: 1.55; color: var(--muted); }

/* Buttons: dark only where it matters, small and rounded */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(30,36,44,.45); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #c9cdd3; }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn svg { width: 19px; height: 19px; flex: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(243, 244, 246, .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease; }
.top.is-scrolled { border-bottom-color: var(--line); background: rgba(243, 244, 246, .92); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand b { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; font-variation-settings: "wdth" 112; }
.brand span { color: var(--muted); font-size: 14px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.top nav a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .2s; }
.top nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; }
.hero .lead { margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stage { position: relative; height: clamp(460px, 48vw, 560px); }
.qr-card { position: absolute; left: 0; top: 4%; width: 64%; background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--lift); }
.qr-card svg { width: 100%; height: auto; display: block; }
.qr-card .m { transform-box: fill-box; transform-origin: center; }
.qr-card figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.qr-card figcaption b { color: var(--ink); font-weight: 600; }
.phone { position: absolute; right: 0; bottom: 0; width: 46%; min-width: 220px; background: var(--surface); border: 1.5px solid #cfd3d9; border-radius: 34px; padding: 26px 16px 18px; box-shadow: var(--lift); }
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 54px; height: 5px; margin-left: -27px; border-radius: 9px; background: var(--soft); }
.avatar { width: 58px; height: 58px; margin: 6px auto 10px; border-radius: 50%; background: var(--soft); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 20px; }
.p-name { text-align: center; font-weight: 600; font-size: 17px; line-height: 1.2; font-variation-settings: "wdth" 108; }
.p-role { text-align: center; color: var(--muted); font-size: 12.5px; margin: 3px 0 12px; min-height: 1.5em; }
.p-save { display: block; text-align: center; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; padding: 9px; border-radius: 10px; }
.p-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 8px 0 10px; }
.p-quick span { border: 1px solid var(--line); border-radius: 9px; padding: 6px 0 4px; text-align: center; font-size: 10px; color: var(--muted); }
.p-quick svg { width: 15px; height: 15px; margin: 0 auto 2px; display: block; stroke: var(--ink); }
.p-rows { margin: 0; font-size: 12px; }
.p-rows div { padding: 6px 8px; border-top: 1px solid var(--line); border-radius: 6px; transition: background-color .6s ease; }
.p-rows div.is-new { background: #e7f1ea; }
.p-rows dt { color: var(--muted); font-size: 10.5px; }
.p-rows dd { margin: 0; font-weight: 500; }
.float { position: absolute; border-radius: 4px; pointer-events: none; }
.float.a { width: 22px; height: 22px; background: var(--ink); opacity: .9; top: -2%; right: 34%; }
.float.b { width: 14px; height: 14px; border: 2px solid var(--ink); top: 54%; left: -4%; }
.float.c { width: 34px; height: 34px; background: var(--soft); bottom: 6%; left: 22%; }
.float.d { width: 10px; height: 10px; background: var(--ink); top: 30%; right: -2%; opacity: .7; }
.float.e { width: 18px; height: 18px; border: 2px solid #b9bec6; bottom: 40%; right: 46%; }

.try { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.try > span { font-size: 14px; color: var(--muted); margin-right: 4px; }
.chip { border: 1px solid #cdd1d7; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 500 14px/1.2 var(--font); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.try-note { flex-basis: 100%; font-size: 14px; color: var(--muted); margin: 6px 0 0; min-height: 1.6em; }

/* Sections */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section.white { background: var(--surface); }
.head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 60px); }
.head h2 { margin-bottom: 14px; }
.head .lead { margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 30px 26px 34px 0; border-bottom: 1px solid var(--line); }
.feature + .feature { padding-left: 26px; border-left: 1px solid var(--line); }
.feature:nth-child(4n+1) { padding-left: 0; border-left: 0; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: background-color .25s, transform .25s; }
.feature .icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature:hover .icon { background: var(--soft); transform: rotate(-6deg); }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* How it works */
.steps-wrap { position: relative; }
.steps-track { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.steps-line { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; }
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); font-weight: 600; font-size: 18px; position: relative; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Enquiry */
.enquire .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.included { list-style: none; padding: 0; margin: 28px 0 0; }
.included li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.included li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23262a30' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.included li.opt { color: var(--muted); }
.form-card { background: var(--surface); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--lift); }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 15.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--glow); font: 16px/1.4 var(--font); color: var(--ink); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(38, 42, 48, .08); }
.field.has-error input, .field.has-error select { border-color: #b4372f; }
.err { color: #b4372f; font-size: 13.5px; margin-top: 5px; display: none; }
.field.has-error .err { display: block; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-foot p { margin: 0; font-size: 14.5px; color: var(--muted); }
.status { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 15px; display: none; }
.status.ok { display: block; background: #e7f1ea; }
.status.bad { display: block; background: #f7e6e4; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Live examples */
.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ex-card { background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--lift); }
.ex-qr-fig div svg { width: 100%; height: auto; display: block; }
.ex-qr-fig figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.ex-qr-fig figcaption b { color: var(--ink); font-weight: 600; }
.ex-person { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; }
.ex-name { font-weight: 600; font-size: 16px; font-variation-settings: "wdth" 108; letter-spacing: -0.01em; }
.ex-role { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.4; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); position: relative; transition: transform .3s ease, background-color .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -0.8px 0 0 -5.5px; background: var(--ink); }
.faq summary i::after { transform: rotate(90deg); transition: transform .3s ease; }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq summary:hover i { background: var(--soft); }
.faq .answer { padding: 0 0 22px; color: var(--muted); overflow: hidden; }
.faq .answer p { margin: 0; }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Responsive */
@media (max-width: 1020px) {
	.features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feature:nth-child(4n+1) { padding-left: 26px; border-left: 1px solid var(--line); }
	.feature:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 880px) {
	.ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero .wrap, .enquire .wrap { grid-template-columns: 1fr; }
	.stage { max-width: 520px; width: 100%; }
	.steps { grid-template-columns: 1fr; }
	.steps-track { display: none; }
	.top nav a.hide-sm { display: none; }
}
@media (max-width: 560px) {
	.ex-grid { grid-template-columns: 1fr; }
	body { font-size: 16px; }
	.features { grid-template-columns: 1fr; }
	.feature, .feature + .feature, .feature:nth-child(n) { padding-left: 0; border-left: 0; }
	.grid2 { grid-template-columns: 1fr; }
	.brand span { display: none; }
	.top nav { gap: 12px; }
	.stage { height: 470px; }
	.qr-card { width: 72%; }
	.phone { width: 60%; }
	.actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; }
}

/* Privacy page */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal .doc { background: var(--surface); border-radius: 22px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--lift); max-width: 860px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { max-width: 70ch; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }

/* ===== v3.0: NFC cards, page types, process diagram ===== */

/* Hero badge */
.badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.badge:hover { border-color: var(--ink); box-shadow: 0 6px 18px -10px rgba(30,36,44,.4); }
.badge-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.badge-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; animation: dqrPulse 2.4s ease-out infinite; }
@keyframes dqrPulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }

/* Tap or scan */
.nfc .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.nfc h2 { margin-bottom: 16px; }
.nfc .lead { margin-bottom: 26px; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; }
.ticks li { position: relative; padding: 0 0 14px 34px; color: var(--muted); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 7px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23262a30' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

.tap-stage { position: relative; height: clamp(380px, 40vw, 470px); }
.nfc-card { position: absolute; left: 0; bottom: 8%; width: 66%; aspect-ratio: 1.586; border-radius: 16px; background: var(--surface); box-shadow: var(--lift); padding: 6% 7%; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-6deg); }
.nfc-card-top b { display: block; font-size: clamp(16px, 1.6vw, 20px); font-variation-settings: "wdth" 108; letter-spacing: -0.01em; }
.nfc-card-top span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.nfc-mark { position: absolute; right: 7%; top: 9%; width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.nfc-card-qr { position: absolute; right: 7%; bottom: 10%; width: 26%; }
.nfc-card-qr svg { width: 100%; height: auto; display: block; }
.ripple { position: absolute; left: 50%; top: 40%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; pointer-events: none; }
.tap-phone { position: absolute; right: 2%; top: 0; width: 42%; min-width: 180px; aspect-ratio: 9 / 17; border-radius: 30px; border: 1.5px solid #cfd3d9; background: var(--surface); box-shadow: var(--lift); overflow: hidden; }
.tap-phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 9px; background: var(--soft); z-index: 2; }
.tap-screen { position: absolute; inset: 0; padding: 30px 14px 14px; display: flex; flex-direction: column; }
.tap-idle { align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.tap-open { opacity: 0; }
.tap-open .avatar { width: 48px; height: 48px; font-size: 16px; }
.tap-open .p-name { font-size: 15px; }
.tap-lines { display: grid; gap: 7px; margin-top: 12px; }
.tap-lines i { display: block; height: 9px; border-radius: 5px; background: var(--soft); }
.tap-lines i:nth-child(2) { width: 80%; }
.tap-lines i:nth-child(3) { width: 60%; }
/* Without animation (or before it starts), show the opened page */
.no-motion .tap-open, .tap-stage:not(.is-animated) .tap-open { opacity: 1; }
.no-motion .tap-idle, .tap-stage:not(.is-animated) .tap-idle { opacity: 0; }

/* Choose what opens */
.page-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.page-type { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 32px); align-items: center; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.page-type.featured { background: var(--surface); box-shadow: var(--lift); border-color: transparent; }
.page-type h3 { font-size: 22px; margin-bottom: 10px; }
.page-type p { margin: 0; color: var(--muted); }
.mini-phone { position: relative; border-radius: 26px; border: 1.5px solid #cfd3d9; background: var(--surface); padding: 26px 12px 14px; aspect-ratio: 9 / 17; overflow: hidden; }
.mini-phone .avatar { width: 44px; height: 44px; font-size: 15px; }
.mini-phone .p-name { font-size: 14px; }
.mini-phone .p-role { font-size: 11px; }
.mini-phone .p-save { font-size: 11.5px; padding: 7px; }
.mini-phone .p-quick span { font-size: 9px; padding: 5px 0; }
/* Branded example uses a sample client brand colour to show the idea */
.mini-phone.branded { --brand: #1f5f5b; padding-top: 0; }
.b-cover { height: 70px; margin: 0 -12px 30px; background: linear-gradient(135deg, var(--brand), #3b8a83); position: relative; }
.b-logo { position: absolute; left: 50%; bottom: -24px; width: 48px; height: 48px; margin-left: -24px; border-radius: 14px; background: var(--surface); box-shadow: 0 4px 12px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--brand); }
.mini-phone.branded .p-save { background: var(--brand); }
.b-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.b-buttons span { border: 1px solid #cfe0de; color: var(--brand); border-radius: 8px; font-size: 9.5px; font-weight: 600; text-align: center; padding: 5px 0; }
.b-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.b-gallery i { aspect-ratio: 1; border-radius: 6px; background: #e3eeec; }

/* Process diagram */
.flow { position: relative; }
.flow-track { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 32px; height: 2px; background: var(--line); }
.flow-line { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; }
.flow-steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.step { text-align: center; }
.step-icon { position: relative; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; transition: border-color .4s, background-color .4s, transform .4s; }
.step-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.step-num { position: absolute; right: -8px; top: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: background-color .4s, color .4s, border-color .4s; }
.step.is-on .step-icon { border-color: var(--ink); transform: translateY(-2px); }
.step.is-on .step-icon svg { stroke: var(--ink); }
.step.is-on .step-num { background: var(--ink); border-color: var(--ink); color: #fff; }
.step-who { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; margin-bottom: 10px; }
.step.is-you .step-who, .who-key.is-you { background: var(--soft); color: var(--ink); }
.step.is-we .step-who, .who-key.is-we { background: var(--ink); color: #fff; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 22ch; }
.flow-note { margin: clamp(32px, 4vw, 48px) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14.5px; color: var(--muted); }
.who-key { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.who-key.is-we { margin-left: 14px; }
/* Without GSAP, every step shows as complete */
.flow:not(.is-animated) .step .step-icon { border-color: var(--ink); }
.flow:not(.is-animated) .step .step-icon svg { stroke: var(--ink); }
.flow:not(.is-animated) .flow-line { transform: none; }

@media (max-width: 1020px) {
	.page-types { grid-template-columns: 1fr; }
	.page-type { max-width: 640px; }
	/* Diagram becomes a vertical timeline */
	.flow-track { left: 31px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto; }
	.flow-line { transform-origin: center top; }
	.flow-steps { grid-template-columns: 1fr; gap: 26px; }
	.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; text-align: left; align-items: start; }
	.step-icon { margin: 0; grid-row: span 3; }
	.step-who { justify-self: start; margin: 4px 0 6px; }
	.step p { margin: 0; max-width: 46ch; }
}
@media (max-width: 880px) {
	.nfc .wrap { grid-template-columns: 1fr; }
	.tap-stage { max-width: 520px; width: 100%; }
}
@media (max-width: 560px) {
	.page-type { grid-template-columns: 1fr; }
	.mini-phone { max-width: 200px; margin: 0 auto; }
	.tap-stage { height: 360px; }
	.nfc-card { width: 78%; }
	.tap-phone { width: 46%; min-width: 150px; }
	.who-key.is-we { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.badge-dot::after { animation: none; }
}
