/* The home page: white paper with a black grid, the app's chrome drawn in
   line and moving a little, a short word on what it is. */

.landing { position: relative; min-height: 100%; overflow-x: hidden; overflow-y: auto; height: 100%; background: #fff; color: #111; }
.landing .gridbg {
  position: fixed; inset: -60px; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  animation: gridmove 40s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 35%, transparent 85%);
}
@keyframes gridmove { to { transform: translate(120px, 120px); } }

.landing .lwrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 22px 20px 64px; }
.landing .ltop { display: flex; align-items: center; gap: 10px; }
.landing .mark { width: 34px; height: 34px; border: 1.8px solid #111; border-radius: 10px; display: grid; place-items: center; background: #fff; }
.landing .mark .kosvg { width: 22px; height: 22px; }
.landing .brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.landing .ltop .spacer { flex: 1; }
.landing .ltop a { color: #111; font-size: 14px; text-decoration: none; opacity: 0.7; }

.landing .lhero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; margin-top: 56px; }
.landing h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; font-weight: 800; }
.landing h1 em { font-style: normal; background: linear-gradient(transparent 62%, #ffeb3b 62%, #ffeb3b 90%, transparent 90%); }
.landing .lede { font-size: 18px; line-height: 1.55; color: #333; max-width: 470px; margin: 20px 0 28px; }
.landing .ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.landing .btn { font: inherit; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px; border: 1.8px solid #111; background: #fff; color: #111; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.landing .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #111; }
.landing .btn.dark { background: #111; color: #fff; }
.landing .fine { font-size: 13px; color: #666; margin-top: 16px; max-width: 470px; }
.landing .err { color: #c62828; margin-top: 12px; }

/* the animated app */
.landing .lstage { position: relative; height: 430px; }
.landing .lwin { position: absolute; background: #fff; border: 1.8px solid #111; border-radius: 14px; box-shadow: 6px 6px 0 #111; overflow: hidden; }
.landing .lpage { left: 0; top: 30px; width: 54%; height: 360px; padding: 26px 22px; animation: float 7s ease-in-out infinite; }
.landing .lpage .ln { height: 7px; background: #111; opacity: 0.85; border-radius: 3px; margin: 0 0 11px; }
.landing .lpage .ln.t { height: 12px; width: 62%; margin-bottom: 18px; opacity: 1; }
.landing .lpage .ln.s { opacity: 0.55; }
.landing .lpage .hl { position: relative; }
.landing .lpage .hl::after { content: ""; position: absolute; left: -3px; top: -4px; height: 15px; width: 0; background: #ffeb3b; mix-blend-mode: multiply; border-radius: 2px; animation: sweep 6s ease-in-out infinite; }
@keyframes sweep { 0%, 15% { width: 0; } 35%, 85% { width: calc(100% + 6px); } 100% { width: calc(100% + 6px); opacity: 0; } }
.landing .lpage .num { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; color: #111; }
.landing .ribbon { position: absolute; right: 14px; top: 0; width: 16px; height: 22px; background: #111; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); animation: drop 6s ease-in-out infinite; }
@keyframes drop { 0%, 40% { transform: translateY(-24px); } 50%, 100% { transform: translateY(0); } }

.landing .lcanvas { right: 0; top: 0; width: 52%; height: 330px;
  background-color: #fffffc;
  background-image: linear-gradient(to right, #c8d6e5 1px, transparent 1px), linear-gradient(to bottom, #c8d6e5 1px, transparent 1px);
  background-size: 18px 18px; animation: float 8s ease-in-out -2s infinite; }
.landing .lcanvas .lbar { display: flex; height: 34px; background: #fff; border-bottom: 1.8px solid #111; }
.landing .lcanvas .lbar span { flex: 1; display: grid; place-items: center; font-size: 11px; position: relative; }
.landing .lcanvas .lbar span { isolation: isolate; }
.landing .lcanvas .lbar span.on::before { content: ""; position: absolute; inset: 4px 3px; background: #e4e4e4; border-radius: 3px; z-index: -1; }
.landing .lcanvas .lbar .ic { width: 18px; height: 18px; }
.landing .lcanvas .lbar .dot { width: 12px; height: 12px; border-radius: 50%; background: #1a4fc4; }
.landing .lcanvas svg.ink { position: absolute; left: 0; top: 34px; width: 100%; height: calc(100% - 34px); }
.landing .lcanvas svg.ink path { fill: none; stroke: #111; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: write 9s ease-in-out infinite; }
.landing .lcanvas svg.ink path.b { stroke: #1a4fc4; animation-delay: 1.4s; }
.landing .lcanvas svg.ink path.c { stroke: #d32f2f; stroke-width: 2.4; animation-delay: 2.6s; }
.landing .lcanvas svg.ink rect.fill { fill: #ffeb3b; opacity: 0; animation: fillin 9s ease-in-out infinite; }
@keyframes write { 0% { stroke-dashoffset: 600; } 30%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fillin { 0%, 45% { opacity: 0; } 55%, 88% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.landing .lbubble { position: absolute; left: 47%; top: 300px; width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 1.8px solid #111; display: grid; place-items: center; box-shadow: 4px 4px 0 #111; animation: pulse 3s ease-in-out infinite; z-index: 3; }
.landing .lbubble .kosvg { width: 28px; height: 28px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.landing .lvoice { right: 6%; top: 345px; width: 210px; height: 66px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-radius: 12px; animation: float 6s ease-in-out -1s infinite; z-index: 2; }
.landing .lvoice .play { width: 32px; height: 32px; border-radius: 50%; border: 1.8px solid #111; display: grid; place-items: center; flex: none; }
.landing .lvoice .play::before { content: ""; border-left: 10px solid #111; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.landing .lvoice .wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 30px; }
.landing .lvoice .wave i { flex: 1; background: #111; border-radius: 2px; animation: bars 1.2s ease-in-out infinite; }
@keyframes bars { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* what it does */
.landing .lfeats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 70px; }
.landing .lfeat { background: #fff; border: 1.8px solid #111; border-radius: 14px; padding: 16px; box-shadow: 4px 4px 0 #111; }
.landing .lfeat .ic, .landing .lfeat .kosvg { width: 28px; height: 28px; margin-bottom: 8px; }
.landing .lfeat b { display: block; font-size: 15px; margin-bottom: 4px; }
.landing .lfeat p { margin: 0; font-size: 13.5px; color: #444; line-height: 1.45; }
.landing .lfoot { margin-top: 44px; font-size: 12.5px; color: #777; display: flex; gap: 16px; flex-wrap: wrap; }
.landing .lfoot a { color: #777; }

@media (max-width: 860px) {
  .landing .lhero { grid-template-columns: 1fr; margin-top: 30px; gap: 26px; }
  .landing .lstage { height: 380px; }
  .landing .lpage { height: 300px; }
  .landing .lcanvas { height: 270px; }
  .landing .lbubble { top: 250px; }
  .landing .lvoice { top: 300px; right: 2%; }
  .landing .lfeats { grid-template-columns: 1fr 1fr; margin-top: 40px; }
}
@media (max-width: 480px) {
  .landing .lfeats { grid-template-columns: 1fr; }
  .landing .lvoice { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { animation: none !important; }
  .landing .lcanvas svg.ink path { stroke-dashoffset: 0; }
  .landing .lpage .hl::after { width: calc(100% + 6px); }
}

/* the picture: resized by its corner handle; the arrow: turned by its rotate handle */
.landing .lcanvas svg.ink .pic { transform-box: fill-box; transform-origin: 0 0; animation: resize 7s ease-in-out infinite; }
.landing .lcanvas svg.ink .pic .frame { fill: #f3f3ee; stroke: #111; stroke-width: 2.2; stroke-dasharray: none; animation: none; }
.landing .lcanvas svg.ink .pic .art { fill: #cfd8dc; stroke: #111; stroke-width: 2; stroke-dasharray: none; animation: none; }
.landing .lcanvas svg.ink .pic .sun { fill: #ffeb3b; }
.landing .lcanvas svg.ink .sel { fill: none; stroke: #555; stroke-width: 1.4; stroke-dasharray: 5 4; animation: none; }
.landing .lcanvas svg.ink .hd { fill: #fff; stroke: #111; stroke-width: 2; stroke-dasharray: none; animation: none; }
@keyframes resize { 0%, 12% { transform: scale(0.82); } 45%, 62% { transform: scale(1.12); } 90%, 100% { transform: scale(0.82); } }
.landing .lcanvas svg.ink .arw { transform-box: fill-box; transform-origin: 50% 40%; animation: turn 6s ease-in-out infinite; }
.landing .lcanvas svg.ink .arrow { stroke: #1a4fc4; stroke-width: 3.2; stroke-dasharray: none; animation: none; }
@keyframes turn { 0%, 15% { transform: rotate(0deg); } 45%, 65% { transform: rotate(-32deg); } 95%, 100% { transform: rotate(0deg); } }

.landing .lcanvas svg.ink .hdl circle { fill: rgba(255,255,255,0.92); stroke: none; }
.landing .lcanvas svg.ink .hdl path { fill: none; stroke: #101010; stroke-width: 0.2646; stroke-dasharray: none; animation: none; }

.landing .btn.ghost { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; }
.landing .btn.ghost .ic { width: 16px; height: 16px; }
