/* Jot page: Jot blue as the accent, plus the hero demo. Shared look comes from /styles.css. */
.jot { --jot: #338cfa; --blue: #338cfa; --jot-soft: color-mix(in srgb, #338cfa 12%, transparent); }
@media (prefers-color-scheme: dark) { .jot { --blue: #5ea4ff; --jot-soft: color-mix(in srgb, #338cfa 22%, transparent); } }
.jot .cta, .jot .btn.dark { background: var(--jot); color: #fff; }
.jot .btn.dark .arrow { background: #fff; color: var(--jot); }
.jot .btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; }
.jot .steps h3::before { background: var(--jot); color: #fff; }
.jot .card code { background: var(--line); padding: 1px 6px; border-radius: 6px; font-size: 13.5px; }
.jot .more { color: var(--blue); font-weight: 600; }
.jot-icon { width: 104px; height: 104px; filter: drop-shadow(0 10px 22px rgba(51,140,250,.28)); }

/* hero demo */
.demo { position: relative; max-width: 760px; margin: 56px auto 0; padding-bottom: 8px; }
.win { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
       box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.14), 0 8px 20px rgba(0,0,0,.05); }
.win-bar { position: relative; display: flex; gap: 8px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.win-bar i { width: 12px; height: 12px; border-radius: 99px; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--soft); pointer-events: none; }
.win-field { display: flex; gap: 12px; padding: 11px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.win-field b { color: var(--soft); font-weight: 500; min-width: 56px; }
.win-body { min-height: 230px; padding: 20px 22px 110px; font-size: 18px; line-height: 1.55; text-align: left; }
.said { color: var(--soft); transition: color .5s ease; }
.said.final { color: var(--ink); }
.said span { animation: word .32s ease both; }
.said del { text-decoration: none; transition: color .25s; }
.said span { transition: opacity .35s; }
.said span.strike del { color: #e5484d; text-decoration: line-through; text-decoration-thickness: 2px; }
.said span.gone { opacity: 0; }
@keyframes word { from { opacity: 0; } to { opacity: 1; } }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -.2em; background: var(--jot); border-radius: 1px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* the floating bubble, after Overlay.swift */
.bubble, .hist { position: absolute; right: 28px; bottom: 74px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-align: left;
                 box-shadow: 0 2px 6px rgba(40,54,74,.10), 0 18px 40px rgba(40,54,74,.16);
                 opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .38s ease, transform .5s cubic-bezier(.2,.8,.2,1); will-change: transform, opacity; }
.bubble { width: 212px; padding: 12px 12px 10px; }
.bubble.show, .hist.show { opacity: 1; transform: none; }
.bubble-row { display: flex; align-items: center; gap: 10px; }
.bars { display: flex; align-items: center; gap: 2.5px; height: 24px; }
.bars i { width: 3px; height: 22px; border-radius: 2px; background: linear-gradient(#5ab8ff, var(--jot)); transform: scaleY(.22); transform-origin: center; }
.bubble.live .bars i { animation: bar .9s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-delay: -.3s !important; } .bars i:nth-child(3) { animation-delay: -.6s !important; }
.bars i:nth-child(4) { animation-delay: -.15s !important; } .bars i:nth-child(5) { animation-delay: -.75s !important; }
.bars i:nth-child(6) { animation-delay: -.45s !important; } .bars i:nth-child(7) { animation-delay: -.9s !important; }
@keyframes bar { 0% { transform: scaleY(.2); } 35% { transform: scaleY(.85); } 60% { transform: scaleY(.4); } 100% { transform: scaleY(1); } }
.timer { font: 600 14px/1 -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.stop { margin-left: auto; width: 24px; height: 24px; border-radius: 99px; background: linear-gradient(135deg, #4c9cff, var(--jot)); box-shadow: 0 0 12px rgba(51,140,250,.45); position: relative; }
.stop::after { content: ""; position: absolute; inset: 8px; border-radius: 1.5px; background: #fff; }
.bubble.finishing .stop { animation: glow .8s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: .45; transform: scale(.88); } }
.bubble-label { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--soft); }

/* the History card that slides in after */
.hist { width: 290px; padding: 14px 16px; transform: translateX(26px); }
.hist-head { display: flex; justify-content: space-between; font: 600 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.hist p { margin: 9px 0 10px; font-size: 14px; line-height: 1.45; }
.hist-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 600; }
.hist-meta span { padding: 3px 9px; border-radius: 99px; background: var(--line); color: var(--soft); }
.hist-meta .ok { background: color-mix(in srgb, #22a447 14%, transparent); color: #1f9a43; }
@media (prefers-color-scheme: dark) { .hist-meta .ok { color: #4cd07a; } }

/* the Globe key under the window */
.demo-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; color: var(--soft); font-size: 15px; text-align: left; }
.demo-foot b { color: var(--ink); font-weight: 600; }
.key { position: relative; flex: none; display: grid; place-items: center; width: 60px; height: 54px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
       box-shadow: 0 3px 0 var(--line), 0 6px 14px rgba(0,0,0,.08); transition: transform .12s ease, box-shadow .12s ease; }
.key svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.key small { position: absolute; top: 5px; right: 7px; font-size: 10px; font-weight: 600; color: var(--soft); }
.key.press { transform: translateY(3px); box-shadow: 0 0 0 var(--line), 0 0 0 4px var(--jot-soft); }
.key.press svg { stroke: var(--jot); }

@media (max-width: 640px) {
  .win-body { font-size: 16.5px; padding: 16px 16px 120px; }
  .win-field { padding: 10px 16px; }
  .bubble, .hist { right: 12px; bottom: 88px; }
  .hist { width: calc(100% - 24px); max-width: 300px; }
  .demo-foot { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble, .hist, .said, .key { transition: none; }
  .caret, .bars i, .said span { animation: none !important; }
}
.jot .shot img { height: auto; }
.jot .card code { white-space: nowrap; }
#more .grid { margin-top: 26px; }
