/* 13 · Easy to learn (round 3). Owner: agent B. Prefix ln-.
   Staging: one calm box at night. The three ways Konto teaches itself (Teach
   Me, Easy mode, the FAQ) sit side by side beside the live phone; the one the
   phone is showing lights up and plays its small moment, the others rest.
   Laid out on the 1440 x 900 frame. */
.ks.ln { --sky1: #22305A; --sky2: #172743; }
.ks .ln-stars { position: absolute; left: -1800px; right: -1800px; top: -200px; bottom: -400px; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.4px), radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.4px);
  background-size: 140px 120px, 90px 110px; background-position: 0 0, 40px 60px; }

.ks .ln-box { position: absolute; inset-inline-start: 72px; top: 92px; width: 1296px; height: 778px; border-radius: 36px; overflow: hidden;
  background: #F6FAFB; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.6); color: var(--ink); }
.ks .ln-main { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 856px; padding: 50px 56px 0; }
.ks .ln-eb { color: var(--c700); margin-bottom: 14px; }
.ks .ln-eb::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c500); }
.ks .ln-h { font-size: 60px; line-height: 1.04; letter-spacing: 0; color: var(--ink); }
.ks[dir="rtl"] .ln-h { font-size: 54px; line-height: 1.28; }
.ks .ln-lead { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.ks .ln-beats { margin-top: 22px; }
.ks .ln-beats li { color: var(--ink-3); }

/* ---------- the three ways ---------- */
.ks .ln-ways { position: absolute; inset-inline: 56px 40px; bottom: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ks .ln-way { display: grid; grid-template-rows: 214px auto; gap: 14px; padding: 14px 14px 18px; border-radius: 24px; background: #fff;
  box-shadow: 0 1px 2px rgba(10,25,41,.06), 0 10px 26px -12px rgba(10,25,41,.18); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.ks .ln-vis { position: relative; border-radius: 16px; overflow: hidden; background: #EEF6F8; }
.ks .ln-txt h3 { margin: 0; font-size: 20px; font-weight: 800; }
.ks .ln-txt p { margin: 4px 0 0; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--ink-2); }

/* Teach Me: the balance card, its ring and the explanation bubble */
.ks .ln-t-card { position: absolute; inset-inline-start: 16px; top: 18px; width: 150px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(180deg, #0BBAD8, #5FD0E3); color: #fff; display: grid; gap: 2px; }
.ks .ln-t-card small { font-size: 11px; font-weight: 600; opacity: .9; }
.ks .ln-t-card b { font-size: 20px; font-weight: 800; justify-self: start; }
.ks .ln-t-ring { position: absolute; inset-inline-start: 10px; top: 12px; width: 162px; height: 64px; border-radius: 18px; border: 2.5px solid #8B5CF6; opacity: 0; }
.ks .ln-t-bub { position: absolute; inset-inline: 22px 14px; top: 98px; display: grid; gap: 2px; padding: 9px 12px; border-radius: 12px; background: #0F1D22; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.35; opacity: .9; }
.ks .ln-t-bub b { font-size: 13px; font-weight: 800; color: #7DD8E8; }
.ks .ln-t-bub::before { content: ""; position: absolute; inset-inline-start: 40px; top: -6px; width: 12px; height: 12px; background: #0F1D22; transform: rotate(45deg); }

/* Easy mode: the step bar and one question */
.ks .ln-e-bar { position: absolute; inset-inline: 16px; top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ks .ln-e-bar i { height: 5px; border-radius: 3px; background: #D6E3E8; overflow: hidden; position: relative; }
.ks .ln-e-bar i::after { content: ""; position: absolute; inset: 0; background: var(--c500); transform: scaleX(0); transform-origin: left; }
.ks[dir="rtl"] .ln-e-bar i::after { transform-origin: right; }
.ks .ln-e-bar i:first-child::after { transform: none; }
.ks .ln-e-q { position: absolute; inset-inline: 16px; top: 40px; margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; }
.ks .ln-e-opts { position: absolute; inset-inline: 16px; top: 100px; display: grid; gap: 8px; }
.ks .ln-e-opts > span { padding: 8px 12px; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px #E4ECF1; }

/* FAQ: the question opens, and its answer */
.ks .ln-f-card { position: absolute; inset-inline: 14px; top: 16px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 6px 14px -8px rgba(10,25,41,.25); }
.ks .ln-f-q { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; }
.ks .ln-f-q svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ink-3); transition: transform .4s var(--ease); }
.ks .ln-f-ans { display: grid; gap: 6px; max-height: 0; overflow: hidden; transition: max-height .6s var(--ease), margin .6s var(--ease); }
.ks .ln-f-ans i { height: 6px; border-radius: 3px; background: #E3EBEF; }
.ks .ln-f-ans i:last-child { width: 64%; }
.ks .ln-f-more { position: absolute; inset-inline: 14px; bottom: 14px; margin: 0; display: grid; gap: 8px; }
.ks .ln-f-more i { height: 34px; border-radius: 12px; background: #fff; opacity: .7; }

/* ---------- the phone, in the same box ---------- */
.ks .ln-side { position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 440px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #D4F1F5, #E8F6F8 60%, #F0F7F9); }
.ks .ln-phone { --pz: .86; }

/* ---------- following the beats ---------- */
.ks.ln.is-leading .ln-way { opacity: .5; }
.ks.ln.is-leading.b-teach .w-teach, .ks.ln.is-leading.b-easy .w-easy, .ks.ln.is-leading.b-faq .w-faq {
  opacity: 1; transform: translateY(-8px); box-shadow: 0 0 0 2px var(--c500), 0 22px 40px -18px rgba(11,186,216,.55); }
.ks.ln.is-leading.b-teach .ln-t-ring { animation: ln-ring 1.6s .3s ease-out infinite; }
.ks.ln.is-leading.b-teach .ln-t-bub { animation: k-rise .5s .5s var(--ease) both; }
.ks.ln.is-leading.b-easy .ln-e-bar i:nth-child(2)::after { animation: ln-fill .5s 1.2s var(--ease) forwards; }
.ks.ln.is-leading.b-easy .ln-e-opts > span:first-child { animation: ln-pick .5s 1s var(--ease) forwards; }
.ks.ln.b-faq .ln-f-ans, .ks.ln.is-calm .ln-f-ans { max-height: 60px; margin-top: 10px; transition-delay: .5s; }
.ks.ln.b-faq .ln-f-q svg, .ks.ln.is-calm .ln-f-q svg { transform: rotate(180deg); }
.ks.ln.is-leading.b-faq .ln-f-card { box-shadow: 0 0 0 2px var(--c500), 0 8px 18px -8px rgba(11,186,216,.4); }
@keyframes ln-ring { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes ln-fill { to { transform: none; } }
@keyframes ln-pick { to { box-shadow: inset 0 0 0 2px var(--c500); background: #F0FAFB; } }

/* ---------- narrow screens ---------- */
html.kp-narrow .ks.ln .kframe { padding: 80px 12px 32px; }
html.kp-narrow .ks .ln-box { position: relative; inset: auto; width: auto; height: auto; border-radius: 28px; }
html.kp-narrow .ks .ln-main { position: relative; inset: auto; width: auto; padding: 28px 20px 8px; }
html.kp-narrow .ks .ln-h { font-size: 38px; }
html.kp-narrow .ks .ln-lead { font-size: 17px; }
html.kp-narrow .ks .ln-ways { position: relative; inset: auto; margin-top: 22px; grid-template-columns: 1fr; }
html.kp-narrow .ks .ln-way { grid-template-columns: 132px 1fr; grid-template-rows: auto; align-items: center; }
html.kp-narrow .ks .ln-vis { height: 214px; width: 220px; zoom: .6; }
html.kp-narrow .ks .ln-side { position: relative; inset: auto; width: auto; padding: 24px 0 28px; }
html.kp-narrow .ks .ln-phone { --pz: .8; }

/* phones (round 5): the phone opens from the Try it button, so its column goes */
html.kp-narrow .ks .ln-side { display: none; }
html.kp-narrow .ks .ln-main { padding-bottom: 24px; }

/* ---------- phones, told full screen (kphone-story.js, story/learn.js) ----------
   The words stand apart (.ln-pcopy, only ever shown here); the box becomes a 420 x 1140
   board on the night sky with the three ways one above the other, moved by the camera. */
.ks .ln-pcopy { display: none; }
html.kp-narrow .ks.ln[data-kst] { --kps-sky: rgba(26,40,72,.94); }
html.kp-narrow .ks.ln[data-kst] > .kframe > .ln-stars[data-kps-part] { display: block !important; }
html.kp-narrow .ks.ln[data-kst] .ln-pcopy .ln-eb { color: #7DD8E8; }
html.kp-narrow .ks.ln[data-kst] .ln-pcopy .ln-h { --mark: rgba(11,186,216,.45); color: #fff; font-size: 30px !important; line-height: 1.12 !important; }
html.kp-narrow .ks.ln[data-kst] .ln-box { background: transparent; box-shadow: none; border-radius: 0; }
html.kp-narrow .ks.ln[data-kst] .ln-main { position: absolute; inset: 0; width: auto; padding: 0; }
html.kp-narrow .ks.ln[data-kst] .ln-main > :not(.ln-ways) { display: none; }
html.kp-narrow .ks.ln[data-kst] .ln-ways { position: absolute; left: 35px; right: 35px; top: 30px; margin: 0; grid-template-columns: 1fr; gap: 200px; }
html.kp-narrow .ks.ln[data-kst] .ln-way { grid-template-columns: none; grid-template-rows: 214px auto; align-items: stretch; padding: 16px 16px 20px; }
html.kp-narrow .ks.ln[data-kst] .ln-vis { zoom: 1; width: auto; height: auto; }
html.kp-narrow .ks.ln[data-kst] .ln-txt h3 { font-size: 22px; }
html.kp-narrow .ks.ln[data-kst] .ln-txt p { font-size: 16px; }
