Good-to-know list
White rounded rows of questions that open in place with a turning plus.
Part of the style
Swinging Lanyard Badges
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/swinging-lanyard-badges/faq/figma.html?palette=ff98fce80da04497
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/swinging-lanyard-badges/faq/figma.html?palette=ff98fce80da04497 and pass that whole HTML document to the html_to_figma tool, so the part "Good-to-know list" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--ground: #334493;
--surface: #2d3d8c;
--ink: #fff2f1;
--ink-soft: #ebaba9;
--ink-faint: #697cbb;
--night: #624c4b;
--night-raised: #feedec;
--frame-edge: #f6cdcb;
--on-night: #2d3d8c;
--on-night-soft: rgba(45, 61, 140, 0.6);
--blush: #33448e;
--peach: #2e3d8a;
--glass: rgba(51, 68, 147, 0.72);
--frost: rgba(45, 61, 140, 0.55);
--line-soft: rgba(255, 242, 241, 0.1);
--line-night: rgba(45, 61, 140, 0.16);
--strap: #a95858;
--mesh-pink: #bc343f;
--mesh-rose: #8b6362;
--strap-dark: #b46565;
--link: #8d5772;
--mesh-violet: #b17192;
--mesh-blue: #9b6580;
--sky: #5e5559;
--mesh-peach: #a95858;
--mesh-cyan: #8d5772;
--mesh-teal: #8d6478;
--mesh-green: #a95858;
--aurora-green: #920b23;
--aurora-pink: #8d5772;
}
</style>
<section class="faq">
<div class="faq__head">
<h2 class="faq__title">Good to know.</h2>
<p class="faq__text">How the pass knows it is on a lanyard, what the door sees, and where your details live.</p>
</div>
<div class="faq__list">
<details class="faq__item" open>
<summary class="faq__question">What does Lumo actually do?<span class="faq__plus" aria-hidden="true"></span></summary>
<div class="faq__answer"><p class="faq__para">It shows one pass at a time, full screen, with your photo, name, role and a code the door can scan. Keep a pass for each night and swipe between them.</p></div>
</details>
<details class="faq__item">
<summary class="faq__question">How does it know it is hanging?<span class="faq__plus" aria-hidden="true"></span></summary>
<div class="faq__answer"><p class="faq__para">When the phone hangs upside down from its strap, the pass flips so it reads the right way up for whoever is in front of you.</p></div>
</details>
<details class="faq__item">
<summary class="faq__question">Does it need a signal at the gate?<span class="faq__plus" aria-hidden="true"></span></summary>
<div class="faq__answer"><p class="faq__para">No. Passes and their codes are kept on the phone, so a crowded field with no reception is fine.</p></div>
</details>
<details class="faq__item">
<summary class="faq__question">Where are my details stored?<span class="faq__plus" aria-hidden="true"></span></summary>
<div class="faq__answer"><p class="faq__para">Only on your phone and in your own backup. There is no account to make and nothing to sign in to.</p></div>
</details>
</div>
</section>
<style>
.faq {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-xl);
max-width: var(--page);
margin: 0 auto;
padding: var(--section-space) var(--edge);
}
.faq__title {
margin: 0;
font-size: var(--display-l);
font-weight: var(--weight-light);
line-height: 1.1;
letter-spacing: var(--track-display);
}
.faq__text {
max-width: 22rem;
margin: var(--space-m) 0 0;
color: var(--ink-soft);
font-size: var(--text-m);
line-height: 1.6;
}
.faq__list {
display: grid;
gap: 10px;
}
.faq__item {
border-radius: var(--radius-card);
background: var(--surface);
transition: box-shadow var(--slow) var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow-soft); }
.faq__question {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
min-height: 64px;
padding: 0 22px 0 24px;
font-size: var(--text);
font-weight: var(--weight-medium);
line-height: 1.3;
list-style: none;
cursor: pointer;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:focus-visible {
outline: 2px solid var(--link);
outline-offset: 2px;
border-radius: var(--radius-card);
}
.faq__plus {
position: relative;
flex: none;
width: 30px;
height: 30px;
border-radius: 50%;
background: var(--ground);
transition: rotate var(--slow) var(--ease), background-color var(--quick) var(--ease);
}
.faq__plus::before,
.faq__plus::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 12px;
height: 1.5px;
translate: -50% -50%;
background: var(--ink);
}
.faq__plus::after { rotate: 90deg; }
.faq__item[open] .faq__plus { rotate: 45deg; background: var(--ink); }
.faq__item[open] .faq__plus::before,
.faq__item[open] .faq__plus::after { background: var(--on-night); }
.faq__question:hover .faq__plus { background: var(--line-soft); }
.faq__item[open] .faq__question:hover .faq__plus { background: var(--ink); }
.faq__answer {
padding: 0 24px 22px;
animation: faq-open var(--slow) var(--ease);
}
.faq__para {
max-width: 34rem;
margin: 0;
color: var(--ink-soft);
font-size: var(--text-m);
line-height: 1.6;
}
@keyframes faq-open {
from { opacity: 0; translate: 0 -6px; }
to { opacity: 1; translate: 0 0; }
}
@media (min-width: 52rem) {
.faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
}
</style>