/* Match the landing page's paper, forest and lime palette and motion timing. */
.features-page.theme-site .features-header {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    padding-bottom: 72px;
    border-bottom: 0;
}
.features-page .features-intro { min-width: 0; }
.features-page.theme-site .features-header .features-eyebrow {
    margin-bottom: 24px;
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 600;
}
.features-page.theme-site .features-header h1 { margin-bottom: 24px; }
.features-page .features-header h1 span { color: #6e8254; }
.features-page .features-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.features-page .features-actions .btn-primary { padding: 15px 22px; font-size: 12px; }
.features-page .features-text-link { color: var(--pc-ink); font-size: 12px; font-weight: 600; text-decoration: none; }
.features-page .features-text-link span { display: inline-block; margin-left: 8px; transition: transform .25s ease; }
.features-page .features-text-link:hover span { transform: translateY(4px); }
.features-page .features-flow { min-width: 0; overflow: hidden; background: #e8eedc; border: 1px solid var(--pc-border); border-radius: 12px; }
.features-page .features-flow-top, .features-page .features-flow-bottom {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    font-size: 9px;
    letter-spacing: 1px;
}
.features-page .features-demo-label { border: 1px solid #b4c39f; border-radius: 4px; padding: 4px 6px; font-size: 8px; }
.features-page .features-flow-map { position: relative; padding: 24px 32px 8px; }
.features-page .features-orbit {
    position: absolute;
    width: 280px;
    height: 280px;
    left: calc(50% - 140px);
    top: -8px;
    border: 1px dashed #b4c39f;
    border-radius: 50%;
}
.features-page .features-flow-node { position: relative; width: 80%; padding: 20px 24px; border: 1px solid #c5d0b7; border-radius: 8px; background: var(--pc-paper); box-shadow: 0 10px 30px #14382d08; }
.features-page .features-flow-node > span { display: block; font-size: 9px; letter-spacing: .7px; }
.features-page .features-flow-node strong { display: block; margin: 10px 0; font-size: 25px; font-weight: 500; letter-spacing: -.7px; }
.features-page .features-flow-node small { font-size: 11px; letter-spacing: 0; }
.features-page .features-destination { margin-left: auto; background: var(--pc-ink); color: var(--pc-paper); border-color: var(--pc-ink); }
.features-page .features-destination > span:first-child { color: var(--pc-lime); }
.features-page .features-destination strong { font-size: 22px; }
.features-page .features-flow-track { position: relative; margin-left: 50%; height: 40px; width: 1px; background: #a5b799; }
.features-page .features-flow-track span { position: absolute; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: #31543f; }
.features-page .features-flow-track span:last-child { top: 26px; }
.features-page .features-event { position: relative; display: flex; align-items: center; gap: 12px; margin: 22px 0 0; padding: 16px; border-radius: 6px; background: var(--pc-lime); }
.features-page .features-event strong, .features-page .features-event div span { display: block; font-size: 11px; }
.features-page .features-event div span { margin-top: 4px; font-size: 10px; }
.features-page .features-event-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc-ink); }
.features-page .features-event-check { width: 12px; height: 7px; border: solid var(--pc-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); margin-left: auto; }
.features-page .features-flow-bottom { font-size: 9px; letter-spacing: 0; flex-wrap: wrap; }
.features-page .features-motion-toggle { border: 0; border-bottom: 1px solid #81946b; background: transparent; color: var(--pc-ink); padding: 4px 0; font: inherit; cursor: pointer; }
.features-page .architecture-showcase { width: min(1180px, 92%); max-width: none; padding: 0; counter-reset: feature; scroll-margin-top: 105px; }
.features-page .arch-card { gap: clamp(28px, 5vw, 72px); padding-inline: 0; margin-bottom: 0; scroll-margin-top: 100px; counter-increment: feature; }
.features-page .arch-card .arch-visual { position: relative; width: 38%; min-width: 0; flex-shrink: 0; border: 0; border-radius: 8px; }
.features-page .arch-card .arch-visual img { transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.features-page .arch-content::before { content: "0" counter(feature) " / PLATFORM"; display: block; margin-bottom: 16px; color: #64764f; font-size: 9px; letter-spacing: 1.5px; }
.features-page .arch-content h3 { font-size: clamp(23px, 2.5vw, 32px); line-height: 1.15; }
.features-page .arch-content p, .features-page .arch-content li { font-size: 14px; line-height: 1.8; }
.features-page .arch-content code { overflow-wrap: anywhere; }
.features-page .arch-content .text-link { display: inline-block; margin-top: 14px; color: var(--pc-ink); font-size: 13px; }
@media (min-width: 900px) {
    .features-page .arch-card:nth-child(even) { flex-direction: row-reverse; }
}
@media (hover: hover) {
    .features-page .arch-card:hover .arch-visual img { transform: scale(1.035); }
}
/* Content stays visible until the observer is successfully installed. */
.features-motion-ready .features-page .features-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .85s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--features-delay, 0ms);
}
.features-motion-ready .features-page .features-reveal.is-visible,
.features-motion-ready .features-page .features-reveal:focus-within {
    opacity: 1;
    transform: translateY(0);
}
.features-page .features-flow.is-running .features-orbit { animation: featuresOrbit 25s linear infinite; }
.features-page .features-flow.is-running .features-flow-track span { animation: featuresTransfer 2.8s ease-in-out infinite; }
.features-page .features-flow.is-running .features-flow-track span:last-child { top: 0; animation-delay: 1.4s; }
.features-page .features-flow.is-running .features-event { animation: featuresFloat 5s ease-in-out infinite; }
.features-page .features-flow.is-running .features-event-dot { animation: featuresPulse 2.8s ease-out infinite; }
.features-page .features-flow.is-paused *, .features-page .features-flow:not(.is-in-view) * { animation-play-state: paused !important; }
@keyframes featuresOrbit { to { transform: rotate(360deg); } }
@keyframes featuresTransfer { 0% { transform: translateY(0); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
@keyframes featuresFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes featuresPulse { 50% { box-shadow: 0 0 0 5px #14382d12; } }
@media (max-width: 900px) {
    .features-page.theme-site .features-header { gap: 30px; }
    .features-page.theme-site .features-header h1 { font-size: clamp(38px, 5vw, 54px); }
    .features-page .features-flow-map { padding-inline: 20px; }
    .features-page .features-flow-node { padding: 18px; width: 90%; }
}
@media (max-width: 768px) {
    .features-page.theme-site .features-header { grid-template-columns: 1fr; padding-bottom: 40px; }
    .features-page .features-flow { width: 100%; max-width: 520px; justify-self: center; }
    .features-page .arch-card { text-align: left; padding-block: 32px; }
    .features-page .arch-card .arch-visual { width: 100%; max-width: 520px; }
    .features-page .arch-content { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .features-motion-ready .features-page .features-reveal { opacity: 1; transform: none; transition: none; }
    .features-page .features-flow * { animation: none !important; }
    .features-page .arch-card:hover .arch-visual img { transform: none; }
}
@media print {
    .features-motion-ready .features-page .features-reveal { opacity: 1; transform: none; }
    .features-page .features-motion-toggle { display: none; }
}
