/* lisbit.app — Overprint: a two-ink poster (federal blue and fluorescent pink on paper), type printed twice a few pixels off register. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f4eee2;
  --paper-2: #e7dfcf;
  --card: #fbf8f1;
  --ink: #2a4d9b;
  --line: #2a4d9b;
  --plate: #2a4d9b;
  --plate-ink: #f4eee2;
  --plate-deep: #172656;
  --muted: #545e86;
  --pink: #ff48b0;
  --pink-text: #b81d72;
  --btn: #c2177b;
  --btn-ink: #ffffff;
  --yellow: #f7b500;
  --shadow: 23 38 86;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --cjk-sc: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --cjk-tc: "PingFang TC", "Noto Sans CJK TC", "Source Han Sans TC", "Microsoft JhengHei", sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .2  0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1634;
    --paper-2: #18235a;
    --card: #141f4d;
    --ink: #dfe6ff;
    --line: #7b97ea;
    --plate: #1c2b6c;
    --plate-ink: #f4eee2;
    --plate-deep: #0a1030;
    --muted: #a9b4e0;
    --pink-text: #ff8ccd;
    --btn: #c2177b;
    --shadow: 0 0 10;
  }
}
html:lang(zh-Hans) { --cjk: var(--cjk-sc); }
html:lang(zh-Hant) { --cjk: var(--cjk-tc); }
html[data-script="cjk"] { --sans: "Geist", var(--cjk); --serif: "Instrument Serif", var(--cjk); --mono: "Geist Mono", var(--cjk); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--grain), var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[data-script="cjk"] body { line-height: 1.7; line-break: strict; text-autospace: normal; }
[data-script="cjk"] em, [data-script="cjk"] i { font-style: normal; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: min(1280px, 100% - 48px); margin: 0 auto; }
.nav { display: flex; align-items: center; gap: 18px; padding: 22px 0; font-weight: 560; font-size: 15px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav .brand img { width: 34px; height: 34px; }
.nav .links { display: flex; gap: 26px; margin-left: auto; }
.nav .links a { text-decoration: none; }
.nav .links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.chip { font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 9px; border: 1.5px solid currentColor; border-radius: 999px; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; font: 600 12px/1 var(--mono); }
.lang a { padding: 7px 10px; border-radius: 999px; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--plate); color: var(--plate-ink); }
.lang a:lang(zh-Hans) { font-family: var(--cjk-sc); }
.lang a:lang(zh-Hant) { font-family: var(--cjk-tc); }

/* Misregistered type: the pink plate sits behind, offset; the ink plate prints over it. */
.over { position: relative; isolation: isolate; }
.over::before { content: attr(data-text); position: absolute; inset: 0; color: var(--pink); transform: translate(5px, 4px); z-index: -1; white-space: inherit; }
.over > span { position: relative; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 14px; background: var(--btn); color: var(--btn-ink); font-weight: 700; font-size: 18px; text-decoration: none; box-shadow: 5px 5px 0 var(--line); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--line); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { transform: none; box-shadow: inset 0 0 0 2px var(--line), 4px 4px 0 var(--pink); }
.kicker { display: flex; align-items: center; gap: 10px; font: 600 13px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-text); }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--pink-text); }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 40px 0 72px; }
/* The headline is one sentence set in the display serif (Liner Notes): "by ear," in pink italic, "sentence" under a highlighter stroke. */
.hero h1.title { margin: 22px 0 0; font: 400 clamp(52px, 6.6vw, 100px)/1.04 var(--serif); letter-spacing: -.02em; }
.hero h1.title em { font-style: italic; color: var(--pink-text); }
.hero h1.title .ul { background: linear-gradient(transparent 62%, rgb(255 72 176 / .38) 62% 90%, transparent 90%); }
.lede { max-width: 34ch; margin-top: 30px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
.lede strong { font-weight: 650; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.meta { margin-top: 20px; font: 500 13px/1.5 var(--mono); color: var(--muted); }

.rabbit { position: relative; justify-self: center; width: min(440px, 100%); aspect-ratio: 1; }
.rabbit .dots { position: absolute; inset: -12% -16% -8% -6%; border-radius: 50%; background: radial-gradient(circle, var(--pink) 32%, transparent 34%) 0 0 / 16px 16px; opacity: .55; -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%); }
.rabbit .ghost { position: absolute; inset: 10%; border-radius: 22%; background: var(--pink); transform: translate(18px, 16px) rotate(-5deg); mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .rabbit .ghost { mix-blend-mode: normal; opacity: .55; } }
.rabbit img { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-5deg); filter: drop-shadow(0 18px 30px rgb(var(--shadow) / .25)); }
.stamp { position: absolute; right: -2%; bottom: 8%; padding: 8px 14px; border: 3px solid var(--pink-text); border-radius: 8px; color: var(--pink-text); font: 700 15px/1 var(--mono); letter-spacing: .2em; transform: rotate(9deg); background: rgb(244 238 226 / .6); }
@media (prefers-color-scheme: dark) { .stamp { background: rgb(14 22 52 / .7); } }

/* A strip of a checked sentence, running across the page. */
.tape { overflow: hidden; border-block: 2px solid var(--plate); background: var(--plate); color: var(--plate-ink); }
.tape .run { display: flex; gap: 48px; width: max-content; padding: 16px 0; font: 400 clamp(26px, 3vw, 40px)/1 var(--serif); white-space: nowrap; animation: run 40s linear infinite; }
.tape s { color: #ffc4e6; text-decoration-thickness: 2px; }
.tape ins { text-decoration: none; padding: 0 .2em; border-radius: 6px; background: var(--btn); color: #fff; }
.tape .gap { color: var(--yellow); }
@keyframes run { to { transform: translateX(-50%); } }

.feature { padding: 110px 0 40px; }
h2.big { margin-top: 16px; font: 800 clamp(44px, 6.4vw, 96px)/0.92 var(--sans); letter-spacing: -0.055em; max-width: 14ch; }
.check { position: relative; margin-top: 54px; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--grain), var(--card); box-shadow: 0 0 0 2px var(--line), 10px 10px 0 var(--pink); }
.check .label { font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.check p { margin-top: 26px; font: 400 clamp(30px, 4.6vw, 70px)/1.3 var(--serif); }
.check .w { position: relative; display: inline-block; }
.check .bad { color: var(--pink-text); text-decoration: line-through 3px; }
.check .fix { position: absolute; left: 0; top: -0.62em; font: 600 .26em/1 var(--mono); color: #172656; background: var(--yellow); padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.check .miss { color: transparent; border-bottom: 4px dotted var(--yellow); }
.check .legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font: 500 14px/1.3 var(--mono); color: var(--muted); }
.check .legend i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; vertical-align: -1px; }
.legend .c-wrong { background: var(--pink-text); } .legend .c-miss { background: var(--yellow); } .legend .c-got { background: var(--line); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 70px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--line); }
.step { padding: 24px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 2px dashed color-mix(in srgb, var(--line) 40%, transparent); }
.step b { display: block; font: 800 72px/1 var(--sans); letter-spacing: -.06em; }
.step h3 { margin: 10px 0 6px; font-size: 21px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 15.5px; }

.habits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 54px; }
.habit, .perk { padding: 24px; border-radius: 18px; background: var(--paper-2); }
.habit:nth-child(2) { background: var(--btn); color: #fff; }
.habit .n { font: 800 64px/1 var(--sans); letter-spacing: -.05em; }
.habit .n small { margin-left: 8px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.habit h3, .perk h3, .perk h2 { margin: 12px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.habit ul { margin: 0; padding: 0; list-style: none; font: 500 15px/1.9 var(--mono); }
.habit s { text-decoration-thickness: 1px; }
.habits-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.habits-head p { max-width: 38ch; font-size: 19px; }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.perk p { color: var(--muted); font-size: 15.5px; }

.screens { padding: 100px 0 120px; }
.screens h2.big { margin-bottom: 50px; max-width: none; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; align-items: start; }
.mosaic .col { display: grid; gap: 22px; }
.mosaic .col:nth-child(2) { margin-top: 46px; }
.mosaic .col:nth-child(3) { margin-top: 12px; }
.mosaic .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mosaic figure { position: relative; margin: 0; }
.win { position: relative; overflow: hidden; aspect-ratio: 1384 / 858; border-radius: 12px; background: var(--paper-2); box-shadow: 0 0 0 2px var(--line), 8px 8px 0 var(--pink); transition: transform .2s; }
.win img { position: absolute; width: 104.05%; max-width: none; height: auto; left: -4.05%; top: -4.9%; }
.win.panel { aspect-ratio: 427 / 640; }
.win.panel img { width: 337.2%; left: -237.2%; top: -7.4%; }
.win.receipt { aspect-ratio: 380 / 640; }
.win.receipt img { width: 378.95%; left: -98.95%; top: -15.6%; }
figure:hover .win { transform: translate(-3px, -3px) rotate(-.6deg); }
figcaption { margin-top: 18px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

.download { position: relative; overflow: hidden; padding: 110px 0 120px; background: radial-gradient(circle, rgb(255 72 176 / .22) 30%, transparent 32%) 0 0 / 14px 14px, var(--plate-deep); color: #f4eee2; }
.download h2 { font: 800 clamp(52px, 8vw, 124px)/.92 var(--sans); letter-spacing: -.06em; white-space: pre-line; }
.download .sub { margin-top: 22px; max-width: 46ch; font-size: 19px; color: rgb(244 238 226 / .85); }
.download .beta { position: absolute; top: 70px; right: max(24px, calc((100% - 1280px) / 2)); padding: 10px 16px; border: 3px solid var(--pink); border-radius: 10px; color: var(--pink); font: 700 18px/1 var(--mono); letter-spacing: .24em; transform: rotate(-8deg); }
.download .all { display: inline-block; margin-top: 34px; font-weight: 600; }
.plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 54px; }
.plat { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px; border-radius: 22px; background: var(--paper); color: var(--ink); }
.plat h3, .plat h2 { font: 400 44px/1 var(--serif); }
.plat p { color: var(--muted); font-size: 14.5px; }
.plat .more-link { margin: 0; font: 600 14px/1.4 var(--sans); color: var(--ink); text-underline-offset: 3px; }
.plat .more { font: 500 13px/1.5 var(--mono); color: var(--muted); }
.plat .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 6px; }
.plat .btn { padding: 13px 20px; font-size: 16px; box-shadow: 4px 4px 0 var(--line); }

.pagehead { padding: 40px 0 10px; }
.pagehead h1 { margin-top: 16px; font: 800 clamp(48px, 7vw, 104px)/.95 var(--sans); letter-spacing: -.06em; }
.pagehead .lede { max-width: 46ch; }
.dlpage .plats { margin-top: 44px; }
.dlpage .info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0 100px; }
.dlpage .info p { color: var(--muted); font-size: 15.5px; }
.more-link, .dlpage .more-link { display: inline-block; margin-top: 14px; font-weight: 600; }

.doc { width: min(760px, 100% - 48px); margin: 0 auto; padding: 30px 0 110px; }
.doc h1 { margin-top: 16px; font: 800 clamp(44px, 6vw, 80px)/.95 var(--sans); letter-spacing: -.055em; }
.doc .note { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--paper-2); font-size: 15px; }
.doc h2 { margin-top: 44px; font-size: 24px; letter-spacing: -.02em; }
.doc p { margin-top: 10px; font-size: 17px; }
.doc a { text-underline-offset: 3px; }
.center { min-height: 50vh; display: grid; align-content: center; justify-items: start; gap: 22px; padding: 40px 0 100px; }

.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 34px 0 44px; font-size: 14px; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .r { margin-left: auto; }

.lang-hint { position: fixed; left: 50%; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--plate-deep); color: #f4eee2; font: 500 15px/1.3 var(--cjk-sc); transform: translateX(-50%); box-shadow: 0 16px 40px -16px rgb(0 0 0 / .6); }
.lang-hint[hidden] { display: none; }
.lang-hint .yes { padding: 8px 14px; border-radius: 999px; background: var(--btn); color: #fff; font-weight: 600; text-decoration: none; }
.lang-hint .x { padding: 6px 10px; border: 0; background: none; color: inherit; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }

@media (max-width: 860px) {
  .wrap, .doc { width: calc(100% - 36px); }
  .nav { gap: 12px; flex-wrap: wrap; }
  .nav .links { gap: 18px; }
  .nav .links a:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 10px; padding: 16px 0 56px; }
  .rabbit { order: -1; width: 62%; margin: 8px 0 18px; justify-self: start; }
  .stamp { font-size: 12px; right: -30%; }
  .feature { padding: 72px 0 24px; }
  .check p { line-height: 1.5; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step b { font-size: 52px; }
  .habits, .perks, .plats, .dlpage .info { grid-template-columns: 1fr; }
  .habits-head { grid-template-columns: 1fr; gap: 18px; }
  .screens { padding: 70px 0 80px; }
  .mosaic { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mosaic .col:first-child { grid-column: 1 / -1; }
  .mosaic .col, .mosaic .pair { gap: 14px; }
  .mosaic .col:nth-child(n) { margin-top: 0; }
  .download { padding: 80px 0 90px; }
  .download .beta { top: 30px; font-size: 13px; }
  .foot .r { margin-left: 0; }
}

/* Chinese: system fonts only. No negative tracking or 0.9 leading from the Latin display face; PingFang tops out at Semibold,
   so 600. The second hero line swaps the plates (pink type, blue ghost) instead of the italic serif, which has no CJK. */
[data-script="cjk"] .hero h1.title { font-size: clamp(46px, 5.6vw, 84px); font-weight: 600; line-height: 1.22; letter-spacing: 0.02em; }
[data-script="cjk"] .hero h1.title em { font-style: normal; background: linear-gradient(transparent 72%, rgb(255 72 176 / .28) 72% 92%, transparent 92%); }
[data-script="cjk"] .over::before { transform: translate(4px, 3px); }
[data-script="cjk"] .lede { max-width: 24em; line-height: 1.8; }
[data-script="cjk"] h2.big, [data-script="cjk"] .pagehead h1, [data-script="cjk"] .doc h1 { font-size: clamp(38px, 5.2vw, 78px); font-weight: 600; line-height: 1.18; letter-spacing: 0.01em; max-width: none; }
[data-script="cjk"] .download h2 { font-size: clamp(46px, 6.6vw, 100px); font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; }
[data-script="cjk"] .step h3, [data-script="cjk"] .habit h3, [data-script="cjk"] .perk h3, [data-script="cjk"] .perk h2, [data-script="cjk"] .plat h2, [data-script="cjk"] .doc h2 { font-weight: 600; letter-spacing: 0.02em; }
[data-script="cjk"] .eyebrow, [data-script="cjk"] .kicker, [data-script="cjk"] figcaption, [data-script="cjk"] .check .label { letter-spacing: 0.08em; }
[data-script="cjk"] .stamp { letter-spacing: 0.3em; font-size: 16px; }
[data-script="cjk"] .btn { font-weight: 600; }
[data-script="cjk"] .doc p { line-height: 1.85; }
@media (max-width: 860px) { [data-script="cjk"] .hero h1.title { font-size: clamp(40px, 11vw, 56px); } }
.center h1 { font: 800 clamp(48px, 7vw, 104px)/.95 var(--sans); letter-spacing: -.06em; }
[data-script="cjk"] .center h1 { font-size: clamp(38px, 5.2vw, 78px); font-weight: 600; line-height: 1.18; letter-spacing: 0.01em; }
/* An overprinted heading is one block, so the pink plate wraps exactly like the type above it. */
h1 > .over, h2 > .over { display: block; }
