/* Homepage motion test. Pairs with motion.js. Reduced-motion visitors get the still page. */
.hero h1 { max-width: 17ch; }
.guide-note { font-size: 14.5px; color: var(--ink-soft); font-style: italic; margin: 0 auto 6px; }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* hero stage: real screenshot plus the live demo */
.hero-stage { position: relative; max-width: 940px; margin: 44px auto 0; padding-bottom: 40px; }
.hero-stage .hero-shot { margin: 0; }
.tilt { transition: transform .35s cubic-bezier(.2,.7,.2,1); will-change: transform; position: relative; }
.tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 0%), rgba(255,255,255,.35), transparent 45%); opacity: 0; transition: opacity .3s; }
.tilt:hover::after { opacity: 1; }

.demo { position: absolute; left: -36px; bottom: 0; width: 330px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(24,34,51,.22); text-align: left; overflow: hidden; z-index: 2; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -6px; } }
.demo-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--ink); color: #fff; font-size: 13px; }
.demo-tag { background: rgba(255,255,255,.16); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; }
.demo-list { list-style: none; border-bottom: 1px solid var(--line); }
.demo-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 14px; font-size: 13px; cursor: pointer; border-left: 3px solid transparent; transition: background .25s, border-color .25s; }
.demo-list li + li { border-top: 1px solid #f0ede6; }
.demo-list li:hover { background: #f7f5f0; }
.demo-list li.on { background: var(--accent-soft); border-left-color: var(--accent); }
.demo-list b { font-weight: 600; }
.demo-list .when { color: var(--ink-soft); font-size: 12px; }
.demo-list .snip { grid-column: 1 / -1; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-task { padding: 12px 14px 14px; min-height: 148px; font-size: 13px; }
.demo-task .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.demo-task .ttl { font: 600 17px/1.25 var(--display); margin: 4px 0 6px; }
.demo-task .due { display: inline-block; background: #fef3e2; color: #8a4b00; border-radius: 6px; padding: 2px 8px; font-weight: 600; font-size: 12.5px; }
.demo-task .why { color: var(--ink-soft); font-size: 12.5px; margin: 6px 0 10px; }
.demo-task .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-task .dest-name { color: var(--ink-soft); font-size: 12.5px; }
.demo-task button { font: 600 13px var(--body); background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.demo-task button:hover { background: #26334a; }
.demo-task .saved { color: #1d7d4b; font-weight: 600; }
.demo-task > * { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

.live-toasts { position: absolute; right: -24px; top: 54px; z-index: 3; display: flex; flex-direction: column; gap: 8px; width: 300px; pointer-events: none; text-align: left; }
.live-toast { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.97); color: var(--ink); border-radius: 12px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(24,34,51,.22); font-size: 13px; line-height: 1.35; opacity: 0; transform: translateY(-12px) scale(.96); transition: opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1); }
.live-toast.show { opacity: 1; transform: none; }
.live-toast strong { display: block; font-weight: 600; }
.live-toast span { color: var(--ink-soft); font-size: 12.5px; }
.live-toast em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #5f6a7d; margin-left: 4px; }   /* was #8d97a9: 2.9:1 on white, fails AA */
.lt-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--c, #1d7d4b); box-shadow: 0 0 0 0 rgba(29,125,75,.5); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(29,125,75,0); } 100% { box-shadow: 0 0 0 0 rgba(29,125,75,0); } }

/* destination switcher */
.switch { margin-top: 96px; text-align: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.pills button { font: 600 14px var(--body); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.pills button.on { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.04); }
.dest-stage { display: grid; max-width: 620px; margin: 0 auto; }
/* The four panels share one grid cell and crossfade. A panel that is not showing is also
   visibility: hidden, so it leaves the keyboard order and the accessibility tree once it has
   faded out. Without JavaScript the page's noscript styles lay all four out in a column. */
.dest { grid-area: 1 / 1; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 14px; padding: 24px; text-align: left; box-shadow: 0 18px 44px rgba(24,34,51,.1); opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity .7s ease, transform 1s ease, visibility 0s linear .7s; pointer-events: none; }
.dest.on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .7s ease, transform 1s ease, visibility 0s; }
.dest-h { display: none; font: 600 17px var(--body); color: var(--ink); margin-bottom: 12px; }   /* the tab names the panel; shown only without JavaScript */
.pills button:focus-visible, .dest:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dest-row { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #f0ede6; }
.dest-box { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c); margin-top: 2px; }
.dest-row b { display: block; font-weight: 600; }
.dest-row span { font-size: 13.5px; color: var(--ink-soft); }
.dest p { color: var(--ink-soft); }

/* steps lift in turn */
.step { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.step b { transition: color .45s; }
.steps .step.active { transform: translateY(-10px); }
.steps .step.active b { color: #fff; animation: pop .5s; }
@keyframes pop { 40% { transform: scale(1.25); } }
.count { display: inline-block; min-width: 2ch; }
.count.landed { animation: pop .6s; }

/* Pause and Play for everything that moves by itself. The row ships hidden and motion.js shows
   it (it stays hidden for reduced-motion visitors, who get no automatic motion to pause). */
.motion-row { text-align: center; }
.motion-toggle { font: 500 13px var(--body); color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 40px; cursor: pointer; }
.motion-toggle:hover { color: var(--ink); background: var(--cream); }
.motion-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero .motion-row { margin: 24px 0 -28px; }   /* sits 16px above the hero screenshot */
.switch .motion-row { margin-top: 18px; }
.motion-paused .demo, .motion-paused .lt-dot { animation-play-state: paused; }
.motion-paused .reveal { opacity: 1; transform: none; transition: none; }
.motion-paused .dest, .motion-paused .pills button, .motion-paused .step { transition: none; }

/* Text for screen readers only (the demo's own status line). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .hero-stage { padding-bottom: 0; }
  .demo { position: relative; left: auto; bottom: auto; width: auto; max-width: 420px; margin: -28px auto 0; animation: none; }
  .live-toasts { right: auto; left: 50%; top: 8px; transform: translateX(-50%); width: min(300px, calc(100vw - 48px)); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .demo, .lt-dot, .demo-task > * { animation: none; }
  .dest, .pills button, .step { transition: none; }
}
