/* ---- Animated logo: the cart rolls in, lights its flame, then flickers ---- */
.brand-mark { display: block; overflow: hidden; border-radius: 22.3%; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.logo .brand-mark { width: 40px; height: 40px; }
.cta-mark { width: 104px; height: 104px; margin: 0 auto 1.75rem; cursor: pointer; border: 0; padding: 0; background: none; box-shadow: 0 16px 40px rgba(232, 90, 58, .3); }
.brand-mark .mark-flame { transform-box: fill-box; transform-origin: 50% 100%; }
.brand-mark .mark-spark { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
    .brand-mark.play .mark-cart { animation: mark-roll .7s cubic-bezier(.22, 1, .36, 1) both; }
    .brand-mark.play .mark-lift { animation: mark-lift .55s .62s ease-out both; }
    .brand-mark.play .mark-flame { animation: mark-ignite .56s .56s cubic-bezier(.34, 1.4, .64, 1) both, mark-flicker .62s 1.2s ease-in-out infinite alternate; }
    .brand-mark.play .mark-spark { animation: mark-spark .65s .68s ease-out both; }
}
@keyframes mark-roll { from { transform: translateX(-1000px); } to { transform: none; } }
@keyframes mark-lift { 0%, 100% { transform: none; } 25% { transform: translateY(-28px) rotate(-1.5deg); } }
@keyframes mark-ignite { from { transform: scale(0); } to { transform: none; } }
@keyframes mark-flicker { from { transform: none; } to { transform: scale(.94, 1.08) skewX(3deg); } }
@keyframes mark-spark { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.5); } }

/* ---- Navigation shows where you are ---- */
.nav-links a[aria-current="true"] { color: var(--primary-color); font-weight: 600; }

/* ---- Try it: two phones, one list ---- */
.try-section { padding: 6rem 2rem; }
.try-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 2.5rem; justify-content: center; max-width: 900px; margin: 0 auto; }
.try-person { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.try-label { display: inline-block; margin-bottom: .875rem; padding: .375rem 1.125rem; border-radius: 99px; background: var(--text-dark); color: #fff; font-size: .9375rem; font-weight: 600; }
.try-phone { display: flex; flex: 1; flex-direction: column; width: 100%; min-width: 0; min-height: 440px; padding: 1.125rem; text-align: left; background: var(--bg-white); border: 1px solid rgba(232, 90, 58, .16); border-radius: 32px; box-shadow: 0 18px 50px rgba(44, 62, 90, .1); transition: box-shadow .4s, border-color .4s; }
.try-phone.synced { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(232, 90, 58, .18), 0 18px 50px rgba(44, 62, 90, .1); }
.try-title { margin: 0 0 .875rem; font-size: 1.125rem; font-weight: 700; color: var(--text-dark); }
.try-form { display: flex; gap: .5rem; margin-bottom: .75rem; }
.try-form input { flex: 1; min-width: 0; height: 46px; padding: 0 1rem; font: inherit; font-size: 1rem; color: var(--text-dark); background: var(--bg-light); border: 1px solid rgba(232, 90, 58, .25); border-radius: 23px; }
.try-form input:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.try-form button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--primary-color); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: transform .15s; }
.try-form button:active { transform: scale(.92); }
.try-chips { display: flex; flex-wrap: wrap; gap: .5rem; min-height: 40px; margin-bottom: .75rem; }
.try-chip { min-height: 40px; padding: 0 .875rem; font: inherit; font-size: .875rem; font-weight: 600; color: var(--text-dark); background: rgba(107, 197, 232, .14); border: 1px solid rgba(107, 197, 232, .45); border-radius: 20px; cursor: pointer; }
.try-hint { margin: 0 0 .75rem; font-size: .9375rem; line-height: 1.5; color: var(--text-light); }
.try-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.try-item { position: relative; display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 50px; padding: 0 .875rem; overflow: hidden; font: inherit; font-size: 1rem; text-align: left; color: var(--text-dark); background: var(--bg-light); border: 0; border-radius: 14px; cursor: pointer; }
.try-item .tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid rgba(44, 62, 90, .3); border-radius: 50%; transition: background .2s, border-color .2s; }
.try-item .tick svg { width: 14px; height: 14px; opacity: 0; transform: scale(.3); transition: transform .3s cubic-bezier(.34, 1.8, .64, 1), opacity .15s; }
.try-item .name { min-width: 0; overflow-wrap: anywhere; }
.try-item[aria-pressed="true"] { color: var(--text-light); }
.try-item[aria-pressed="true"] .name { text-decoration: line-through; }
.try-item[aria-pressed="true"] .tick { background: #10b981; border-color: #10b981; }
.try-item[aria-pressed="true"] .tick svg { opacity: 1; transform: none; }
.try-item:focus-visible, .try-chip:focus-visible, .try-reset:focus-visible, .cta-mark:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.try-note { margin: 2rem 0 0; text-align: center; font-size: .9375rem; color: var(--text-light); }
.try-reset { min-height: 44px; padding: 0 .5rem; font: inherit; font-weight: 600; color: var(--primary-dark); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .try-item.arrived { animation: try-arrive 1.2s ease-out; }
    .try-item.burst::after { content: ""; position: absolute; inset: 0; background: #10b981; border-radius: inherit; pointer-events: none; animation: try-burst .5s ease-out both; }
}
@keyframes try-arrive { 0% { background: #ffe3ad; transform: translateY(-8px); opacity: 0; } 20% { transform: none; opacity: 1; } 100% { background: var(--bg-light); } }
@keyframes try-burst { from { opacity: .85; transform: scaleX(0); transform-origin: left; } 45% { opacity: .85; transform: scaleX(1); transform-origin: left; } to { opacity: 0; } }
@media (max-width: 768px) {
    .try-section { padding: 3.5rem 1rem; }
    .try-stage { gap: .75rem; }
    .try-phone { min-height: 400px; padding: .75rem; border-radius: 24px; }
    .try-item { gap: .5rem; padding: 0 .625rem; font-size: .9375rem; }
    .try-form input { padding: 0 .75rem; }
    .try-form { gap: .375rem; }
    .try-form button { width: 44px; height: 46px; }
    .try-chips { flex-wrap: nowrap; margin-right: -.75rem; padding: 2px .75rem 2px 2px; overflow-x: auto; scrollbar-width: none; }
    .try-chip { flex: none; padding: 0 .75rem; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
