Files
KoalaSync/website/styles/landing-faq.css
T
2026-07-11 15:48:09 +02:00

214 lines
4.8 KiB
CSS

/* --- Section collapse (FAQ, self-hosting): closed by default to keep the page short --- */
.section-collapse {
margin: 0 auto;
}
.faq-section-collapse {
max-width: 800px;
}
.collapse-summary {
display: flex;
align-items: center;
justify-content: center;
gap: 0.6rem;
list-style: none;
cursor: pointer;
font-weight: 700;
font-size: 1rem;
color: var(--accent);
background: oklch(0.68 0.13 150 / 0.08);
border: 1px solid oklch(0.68 0.13 150 / 0.3);
border-radius: 99px;
padding: 0.85rem 2rem;
max-width: 360px;
margin: 0 auto;
transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.collapse-summary::-webkit-details-marker {
display: none;
}
.collapse-summary:hover {
background: oklch(0.68 0.13 150 / 0.16);
box-shadow: 0 0 20px oklch(0.68 0.13 150 / 0.25);
transform: translateY(-2px);
}
.collapse-summary .collapse-chevron {
flex-shrink: 0;
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-collapse[open] .collapse-chevron {
transform: rotate(180deg);
}
.collapse-label-hide { display: none; }
.section-collapse[open] .collapse-label-show { display: none; }
.section-collapse[open] .collapse-label-hide { display: inline; }
.section-collapse[open] .collapse-summary {
margin-bottom: 2rem;
}
.section-collapse[open] .collapse-content {
animation: collapse-content-in 0.4s ease-out;
}
@keyframes collapse-content-in {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
.section-collapse[open] .collapse-content {
animation: none;
}
}
/* --- FAQ Section --- */
.faq-grid {
display: flex;
flex-direction: column;
gap: 1rem;
max-width: 800px;
margin: 0 auto;
}
.faq-item {
background: oklch(0.27 0.035 130 / 0.45);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 1.5rem 2rem;
cursor: pointer;
transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
overflow: hidden;
}
.faq-item:hover {
border-color: oklch(0.68 0.13 150 / 0.3);
box-shadow: 0 8px 20px oklch(0.68 0.13 150 / 0.1);
}
.faq-item[open] {
border-color: oklch(0.68 0.13 150 / 0.4);
background: oklch(0.27 0.035 130 / 0.65);
}
.faq-item summary {
font-weight: 700;
font-size: 1.05rem;
color: var(--text);
list-style: none;
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
display: none;
}
.faq-item summary::after {
content: '+';
font-size: 1.4rem;
color: var(--accent);
font-weight: 300;
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
flex-shrink: 0;
transform-origin: center;
}
.faq-item[open] summary::after {
transform: rotate(45deg);
}
.faq-item p {
color: var(--text-muted);
font-size: 0.95rem;
line-height: 1.6;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
/* --- Focus states for interactive cards --- */
.feature-card:focus-visible,
.use-case-card:focus-visible,
.compat-logo:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 4px;
transform: translateY(-5px);
}
.feature-card,
.use-case-card,
.compat-logo,
section[id],
header[id] {
scroll-margin-top: 100px;
}
/* --- Screen-reader-only (also crawlable by search engines) --- */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* --- Skip-to-content accessibility link --- */
.skip-link {
position: absolute;
left: -9999px;
top: 0;
background: var(--accent);
color: var(--text-on-green);
padding: 0.75rem 1.25rem;
border-radius: 0 0 8px 0;
font-weight: 700;
z-index: 9999;
text-decoration: none;
}
.skip-link:focus {
left: 0;
}
/* --- Reduced motion support --- */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
.join-status-pulse { animation: none; }
.status-ring.active-pulse { animation: none; }
}
/* --- will-change hints for animated elements --- */
.join-status-pulse,
.status-ring.active-pulse,
.hero-mockup-wrapper,
.cta-group .btn {
will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
.join-status-pulse,
.status-ring.active-pulse,
.hero-mockup-wrapper,
.cta-group .btn {
}
}