/* Landing page (resources/views/landing.blade.php). Base styles: style.css. */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 76px; }
.band { background: #fff; border-block: 2px solid var(--sunken); }
.pad { padding-block: 80px; }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 660px; margin-bottom: 36px; }
.head h2 { font-size: clamp(30px, 4vw, 46px); }
.head p { font: 600 18px/1.55 var(--sans); color: var(--ink2); }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 236, .92); backdrop-filter: blur(10px); border-bottom: 2px solid var(--sunken); }
header.top .wrap { height: 68px; display: flex; align-items: center; gap: 24px; }
header.top nav { display: flex; gap: 4px; margin-left: auto; }
header.top nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 700 16px/1 var(--round); }
header.top nav a:hover { background: var(--sunken); }
header.top .btn { height: 44px; padding: 0 18px; font-size: 17px; }
@media (max-width: 860px) { header.top nav { display: none; } header.top .btn { margin-left: auto; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px 64px; padding-block: 56px 88px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy .lead { max-width: 540px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 28px; margin-top: 18px; padding-top: 22px; border-top: 2px dashed var(--edge); }
.facts b { display: block; font: 800 30px/1 var(--round); }
.facts span { font: 700 14px/1.3 var(--sans); color: var(--ink2); }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; justify-items: center; } .hero-copy { text-align: left; } }
@media (max-width: 560px) { .facts { grid-template-columns: repeat(2, auto); } }

/* the phone with a playable practice */
.demo { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.demo-miao { position: absolute; width: 108px; left: -92px; bottom: 40px; animation: bob 3s ease-in-out infinite; z-index: 2; }
@media (max-width: 560px) { .demo-miao { width: 76px; left: -8px; top: -34px; bottom: auto; } }
.phone { width: 330px; height: 680px; padding: 12px; border-radius: 52px; background: var(--ink); box-shadow: 0 30px 60px -20px rgba(31, 37, 68, .45), inset 0 0 0 2px #3A4170; }
@media (max-width: 380px) { .phone { width: 300px; height: 630px; } }
.screen { position: relative; height: 100%; border-radius: 40px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.screen::before { content: ''; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 96px; height: 28px; border-radius: 16px; background: var(--ink); }
.q-top { display: flex; align-items: center; gap: 10px; padding: 52px 18px 0; }
.q-top .x { width: 36px; height: 36px; border-radius: 12px; border: 2px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.q-top .x .icon { font-size: 20px; }
.q-bar { flex: 1; height: 12px; border-radius: 6px; background: var(--border); overflow: hidden; }
.q-bar i { display: block; height: 100%; border-radius: 6px; background: var(--primary); transition: width .3s; }
.q-top b { font: 800 15px/1 var(--round); min-width: 28px; text-align: right; }
.q-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 18px 18px; }
.q-ask { font: 800 20px/1.2 var(--round); align-self: flex-start; }
.q-word { display: flex; align-items: center; gap: 12px; }
.q-tools { display: flex; flex-direction: column; gap: 10px; }
.round { appearance: none; cursor: pointer; width: 52px; height: 52px; border-radius: 16px; border: 0; background: var(--primary); color: #fff; box-shadow: 0 4px 0 var(--deep);
  display: flex; align-items: center; justify-content: center; }
.round:active { transform: translateY(4px); box-shadow: none; }
.round.white { background: #fff; color: var(--ink2); border: 2px solid var(--border); box-shadow: 0 4px 0 var(--edge); }
.round.white[aria-pressed='true'] { color: var(--primary); border-color: var(--grid); }
.q-py { height: 26px; font: 800 22px/1 var(--sans); color: var(--primary); }
.q-meaning { font: 800 30px/1.1 var(--round); padding: 26px 0 8px; text-align: center; }
.q-opts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.opt { position: relative; appearance: none; cursor: pointer; height: 62px; border-radius: 16px; border: 2.5px solid var(--border); background: #fff; box-shadow: 0 4px 0 var(--border);
  font: 700 18px/1 var(--round); display: flex; align-items: center; justify-content: center; transition: transform .08s; }
.opt.hz { font: 400 34px/1 var(--kai); }
.opt:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.opt.ok { background: var(--ok-tint); border-color: var(--ok); box-shadow: 0 4px 0 var(--ok); color: var(--ok-ink); }
.opt.bad { background: var(--bad-tint); border-color: var(--bad); box-shadow: 0 4px 0 var(--bad); color: var(--bad-ink); }
.opt.dim { opacity: .45; }
.opt:disabled { cursor: default; }
.opt .tick { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 9px; border: 3px solid var(--paper); color: #fff;
  display: flex; align-items: center; justify-content: center; }
.opt .tick .icon { font-size: 16px; font-weight: 700; }
.sheet { margin: 0 -18px -18px; padding: 16px 18px 22px; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; gap: 10px; animation: in .2s ease-out; }
.sheet.ok { background: var(--ok-tint); color: var(--ok-ink); }
.sheet.bad { background: var(--bad-tint); color: var(--bad-ink); }
.sheet b { font: 800 22px/1.1 var(--round); display: flex; align-items: center; gap: 8px; }
.sheet small { font: 700 15px/1.35 var(--sans); }
.sheet .xp { margin-left: auto; font: 800 13px/1 var(--sans); padding: 6px 8px; border-radius: 8px; background: var(--warn-tint); color: var(--warn-ink); }
.q-end { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.q-end img { width: 130px; animation: bob 2.6s ease-in-out infinite; }
.q-end h3 { font-size: 30px; }
.stamp { width: 74px; height: 74px; border: 4px solid var(--seal); border-radius: 16px; color: var(--seal); font: 400 46px/1 var(--kai); display: flex; align-items: center; justify-content: center;
  transform: rotate(-8deg); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1) both; }
.demo-cap { display: flex; align-items: center; gap: 6px; font: 700 14px/1.3 var(--sans); color: var(--ink2); }
.demo-cap .icon { font-size: 20px; font-variation-settings: 'FILL' 0; }

/* three steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 20px; padding: 22px; background: var(--paper); border: 2px solid var(--border); border-radius: 28px; }
.step .art { height: 170px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.step .num { width: 36px; height: 36px; flex: none; border-radius: 12px; background: var(--primary); color: #fff; font: 800 18px/1 var(--round); display: flex; align-items: center; justify-content: center; }
.step .txt { display: flex; gap: 14px; align-items: flex-start; }
.step h3 { font-size: 22px; margin-bottom: 4px; }
.step p { color: var(--ink2); }
.pill { height: 56px; padding: 0 18px; border-radius: 16px; background: #fff; border: 2px solid var(--border); box-shadow: 0 4px 0 var(--edge); display: flex; align-items: center; gap: 10px; }
.mini-opts { width: 100%; max-width: 280px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-opts .opt { cursor: default; }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.feat { display: flex; flex-direction: column; gap: 18px; padding: 22px; background: #fff; border: 2px solid var(--border); border-radius: 28px; }
.feat .art { height: 210px; border-radius: 20px; background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.feat h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.feat h3 .icon { width: 40px; height: 40px; border-radius: 12px; font-size: 24px; }
.feat p { color: var(--ink2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font: 800 12px/1 var(--sans); letter-spacing: .06em; }
.newcard { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.newcard .ex { font: 400 22px/1.3 var(--kai); }
.newcard .ex em { font-style: normal; color: var(--primary); }
.strokes { width: 150px; height: 150px; }
.strokes .ghost { fill: #EFE6D3; }
.strokes .ink { fill: none; stroke: var(--ink); stroke-width: 180; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len); animation: draw 7s calc(var(--i) * .75s) infinite both; }
@keyframes draw { 0% { stroke-dashoffset: var(--len); opacity: 1; } 9% { stroke-dashoffset: 0; } 72% { stroke-dashoffset: 0; opacity: 1; } 80%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.write-box { position: relative; background: #fff; border: 3px solid var(--grid); border-radius: 22px; }
.write-box::before, .write-box::after { content: ''; position: absolute; border: 0 dashed var(--grid-dash); }
.write-box::before { left: 0; right: 0; top: 50%; border-top-width: 2px; }
.write-box::after { top: 0; bottom: 0; left: 50%; border-left-width: 2px; }
.exam { width: 250px; display: flex; flex-direction: column; gap: 12px; }
.exam .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.judge { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.judge > span { height: 52px; border-radius: 14px; background: #fff; border: 2.5px solid var(--border); box-shadow: 0 4px 0 var(--border); display: flex; align-items: center; justify-content: center; }
.judge > span.on { background: var(--tint); border-color: var(--primary); box-shadow: 0 4px 0 var(--primary); color: var(--primary); }
.judge .icon { font-size: 30px; font-weight: 700; }
.listen { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--tint); color: var(--deep); font: 700 14px/1.2 var(--sans); }
.wave { display: flex; align-items: center; gap: 3px; height: 18px; }
.wave i { width: 4px; border-radius: 2px; background: var(--primary); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 18px; } }
.sentence { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sentence .zh { font: 400 30px/1.2 var(--kai); }
.sentence .blank { display: inline-block; width: 1.9em; border-bottom: 3px solid var(--primary); margin: 0 4px; }
.offline { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.plane { font-size: 44px; color: var(--primary); animation: bob 3s ease-in-out infinite; }
.dl { display: flex; align-items: center; gap: 10px; width: 250px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 2px solid var(--border); }
.dl .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.dl .bar i { display: block; height: 100%; width: 100%; background: var(--ok); border-radius: 4px; animation: grow 3.5s ease-out infinite; }
@keyframes grow { from { width: 0; } 70%, 100% { width: 100%; } }
.seals { display: grid; grid-template-columns: repeat(5, 46px); gap: 12px; }
.seals .seal { width: 46px; height: 46px; font-size: 26px; }
.seals .seal:nth-child(odd) { transform: rotate(5deg); } .seals .seal:nth-child(3n) { transform: rotate(-9deg); }

/* levels */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.lv { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #fff; border: 2px solid var(--border); border-radius: 24px; }
.lv .num { width: 60px; height: 60px; border-radius: 18px; background: var(--tint); color: var(--primary); font: 400 36px/1 var(--kai); display: flex; align-items: center; justify-content: center; }
.lv b { display: block; font: 800 20px/1.2 var(--round); }
.lv span { font: 700 14px/1.3 var(--sans); color: var(--ink2); }
.lv strong { margin-top: auto; font: 800 14px/1 var(--sans); color: var(--primary); }
.lv.top { background: var(--ink); border-color: var(--ink); color: #fff; }
.lv.top .num { background: #2E3560; color: var(--sun); }
.lv.top span { color: #C9CEE6; }
.lv.top strong { color: var(--sun); }

/* privacy */
.privacy { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 32px 48px; }
.privacy .intro { display: flex; flex-direction: column; gap: 14px; }
.privacy .intro img { width: 120px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.trust { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--paper); border: 2px solid var(--border); border-radius: 22px; }
.trust .icon { width: 48px; height: 48px; border-radius: 14px; font-size: 26px; }
.trust h3 { font-size: 19px; margin-bottom: 4px; }
.trust p { font-size: 15px; color: var(--ink2); }
@media (max-width: 760px) { .privacy { grid-template-columns: 1fr; } }

/* call to action, footer */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 32px; padding: 44px 48px; border-radius: 36px; background: var(--primary); color: #fff; box-shadow: 0 8px 0 var(--deep); }
.cta h2 { font-size: clamp(30px, 4vw, 44px); }
.cta p { color: #DCE3FF; font: 600 18px/1.5 var(--sans); margin-top: 8px; }
.cta img { width: 150px; flex: none; animation: bob 3s ease-in-out infinite; }
.cta .btn { margin-left: auto; background: #fff; color: var(--primary); box-shadow: 0 4px 0 #1E2F86; }
.cta::after { content: '喵'; position: absolute; right: -10px; bottom: -70px; font: 400 240px/1 var(--kai); color: rgba(255, 255, 255, .07); pointer-events: none; }
@media (max-width: 760px) { .cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; } .cta .btn { margin-left: 0; } .cta img { width: 110px; } }
footer { margin-top: 80px; background: var(--ink); color: #fff; }
footer .wrap { padding-block: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
footer .seal { border-color: #F7894E; color: #F7894E; background: transparent; width: 36px; height: 36px; font-size: 21px; }
footer .logo { color: #fff; font-size: 21px; }
footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer nav a { color: #fff; font: 700 15px/1 var(--sans); padding: 8px 0; }
footer small { flex-basis: 100%; color: #9EA4C4; font: 600 13px/1.5 var(--sans); }
footer small a { color: #C9CEE6; }
