/* mokiwa landing: dark, product-first. Real screens of the app, big type, flat surfaces. No gradients. */

.cta-note { font-size: 14px; color: var(--faint); }

/* ---- nav ---- */
.nav { background: rgba(12, 13, 14, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---- hero ---- */
.l-hero { padding-top: clamp(56px, 9vw, 120px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.l-hero h1 { font-size: clamp(2.8rem, 8.4vw, 7.4rem); line-height: .94; letter-spacing: -.058em; max-width: 12.5em; text-wrap: balance; }
.l-lede { margin: clamp(22px, 3vw, 34px) 0 0; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.l-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 20px; margin-top: clamp(26px, 4vw, 40px); }
.l-keys { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.l-keys .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 14px; }

/* the three real screens */
.l-stage { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 2.4vw, 36px); width: 100%; margin-top: clamp(48px, 7vw, 96px); padding-inline: 0; }
.l-shot { margin: 0; flex: 0 1 300px; min-width: 0; text-align: center; }
.l-shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 48px rgba(0, 0, 0, .55)); }
.l-shot figcaption { margin-top: 18px; font-size: 13px; color: var(--faint); letter-spacing: .01em; }
.l-shot-main { flex-basis: 340px; position: relative; z-index: 2; }
.l-shot-side { opacity: .96; }
.l-stage .l-shot { animation: shot-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.l-stage .l-shot-main { animation-delay: .05s; }
.l-stage .l-shot:first-child { animation-delay: .18s; }
.l-stage .l-shot:last-child { animation-delay: .26s; }
@keyframes shot-in { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* ---- sections ---- */
.sec { border-top: 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1; letter-spacing: -.048em; text-wrap: balance; }

/* cards */
.l-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, background .2s; }
.l-card:hover { border-color: var(--line-2); background: var(--panel-2); }
.l-card h3 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -.025em; }
.l-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.l-card .tag { align-self: flex-start; margin-top: auto; padding-top: 22px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.l-card .tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 8px; vertical-align: 1px; }

/* how it works */
.l-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.l-steps li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 36px); min-height: 320px; display: flex; flex-direction: column; }
.l-steps .l-num { position: absolute; top: clamp(22px, 2.6vw, 30px); right: clamp(24px, 3vw, 34px); font-size: 13px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.l-steps .keys.big { margin-bottom: 0; padding-bottom: 56px; }
.l-steps .keys.big kbd { min-width: 64px; height: 64px; font-size: 28px; border-radius: 16px; padding: 0 14px; }
.l-steps h3 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -.03em; }
.l-steps p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* what it saves: bento */
.l-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 12px; }
.l-bento .l-card { grid-column: span 2; }
.l-bento .l-card-feature { grid-column: span 3; grid-row: span 2; padding-bottom: 0; }
.l-bento .l-card-feature img { display: block; width: min(300px, 78%); height: auto; margin: 28px auto 0; align-self: center; border-radius: 22px 22px 0 0; }
.l-bento .l-card-feature .tag { margin-top: 18px; padding-top: 0; }
.l-bento .l-card-wide { grid-column: span 6; }
.l-bento .l-card:nth-child(2), .l-bento .l-card:nth-child(3) { grid-column: span 3; }
.l-bento .l-card:nth-child(4), .l-bento .l-card:nth-child(5) { grid-column: span 3; }

/* keyboard */
.l-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.l-split .sec-head { margin-bottom: 28px; }
.l-shot-solo { flex: none; justify-self: center; width: min(320px, 100%); }
.l-shot-solo img { border-radius: 22px; }
.shortcuts th { width: 160px; }

/* privacy */
.l-statement { max-width: 46rem; }
.l-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 5vw, 56px); }
.l-facts .l-card h3 { font-size: 1.15rem; }
.l-note { margin: 28px 0 0; max-width: 48rem; font-size: 14.5px; color: var(--faint); }
.l-card a { color: var(--lime); }

/* limits (kept as a quiet two-column list) */
.limits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.limits li { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); }
.limits strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* download */
.download { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 120px); }
.l-dl { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 36px; padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px); }
.l-dl .big-mark { width: clamp(72px, 9vw, 112px); margin-bottom: 8px; }
.l-dl h2 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.05em; margin-top: 12px; }
.l-dl .dl-meta { margin: 14px 0 30px; font-size: 16px; }
.l-dl .fine { margin-top: 28px; text-align: center; }

/* ---- small screens ---- */
@media (max-width: 920px) {
  .l-stage { flex-wrap: wrap; align-items: flex-start; }
  .l-shot-main { order: -1; flex-basis: min(340px, 78vw); }
  .l-shot-side { flex-basis: min(300px, 42vw); }
  .l-steps { grid-template-columns: minmax(0, 1fr); }
  .l-steps li { min-height: 0; }
  .l-steps .keys.big { padding-bottom: 28px; margin-bottom: 0; }
  .l-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .l-bento .l-card, .l-bento .l-card-feature, .l-bento .l-card-wide, .l-bento .l-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .l-split, .l-facts, .limits { grid-template-columns: minmax(0, 1fr); }
  .l-split > * { min-width: 0; }
  .nav nav a:not(.btn):not(.keep) { display: none; }
}
@media (max-width: 560px) {
  .l-shot-side { display: none; }
  .l-shot-main { flex-basis: min(320px, 86vw); }
  .l-keys .sep { margin: 0 8px; }
  .shortcuts th { width: 96px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .l-stage .l-shot { animation: none; } }

/* ================= motion ================= */

/* headline: each word rises out of a mask */
.l-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
.l-hero h1 .w > span { display: inline-block; transform: translateY(110%); animation: word-up .95s cubic-bezier(.2, .75, .15, 1) forwards; }
.l-hero h1 .d0 { animation-delay: .05s; } .l-hero h1 .d1 { animation-delay: .12s; } .l-hero h1 .d2 { animation-delay: .19s; }
.l-hero h1 .d3 { animation-delay: .26s; } .l-hero h1 .d4 { animation-delay: .38s; } .l-hero h1 .d5 { animation-delay: .46s; }
@keyframes word-up { to { transform: none; } }
.l-lede, .l-cta, .l-keys { opacity: 0; animation: fade-up .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.l-lede { animation-delay: .6s; } .l-cta { animation-delay: .72s; } .l-keys { animation-delay: .84s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* screens: slide in, then float slowly; the side ones drift with the scroll (translate is separate from the entrance's transform) */
.l-stage .l-shot { animation: shot-in 1s cubic-bezier(.2, .7, .2, 1) both; will-change: translate; }
.l-stage .l-shot-main { translate: 0 calc(var(--p, 0) * -.03px); }
.l-stage .l-shot-side { translate: 0 calc(var(--p, 0) * var(--depth, .1) * -1px); }
.l-stage .l-shot:first-child { --depth: .09; } .l-stage .l-shot:last-child { --depth: .15; }
.l-shot img { animation: bob 7s ease-in-out infinite; will-change: transform; }
.l-stage .l-shot:first-child img { animation-duration: 8s; animation-delay: -2s; }
.l-stage .l-shot:last-child img { animation-duration: 9s; animation-delay: -5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 2px; background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--s, 0)); pointer-events: none; }

/* cards: lift on hover, keycaps "press" when their card arrives */
.l-card, .l-steps li { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), translate .3s cubic-bezier(.2, .7, .2, 1), border-color .2s, background .2s; }
.l-card:hover, .l-steps li:hover { translate: 0 -5px; border-color: var(--line-2); }
.l-steps li.rv-in kbd { animation: press 1.1s ease both; animation-delay: calc(.55s + var(--k, 0) * .16s); }
.l-steps li.rv-in kbd:nth-child(2) { --k: 1; }
@keyframes press { 0%, 100% { transform: none; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); } 35% { transform: translateY(3px) scale(.95); background: var(--lime); color: var(--on-lime); } }

/* big feature image rises into the card */
.l-card-feature img { transform: translateY(44px); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .25s; }
.l-card-feature.rv-in img { transform: none; }

/* download mark floats */
.l-dl .big-mark { animation: bob 6s ease-in-out infinite; }
.l-dl .btn { transition: transform .2s, background .15s; }
.l-dl .btn:hover { transform: translateY(-2px) scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  .l-hero h1 .w > span, .l-lede, .l-cta, .l-keys { animation: none; transform: none; opacity: 1; }
  .l-shot img, .l-dl .big-mark, .l-steps li.rv-in kbd { animation: none; }
  .l-stage .l-shot { translate: none; will-change: auto; }
  .l-card-feature img { transform: none; transition: none; }
  .progress { display: none; }
}
