/* bright-look-20261204: the bright front page (boredprof.com for the visitors picked for the bright look).
   White, Inter, chunky buttons with a lip, Study Worlds' own art. The lesson demo on the tablet styles itself (the page's script). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/site/bright/inter-latin.woff2) format('woff2'); }
:root {
  --ink: #17153a; --ink2: #5b5e78; --mute: #8f91a9; --line: #ececf4; --lip: #c3c5dc; --soft: #f5f5fb;
  --yellow: #ffc61a; --yellow-lip: #d99a00; --ok: #2fcf7a; --red: #ff4646;
  --f: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 500 17px/1.5 var(--f); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.bf-wrap { width: min(1120px, 100% - 40px); margin: 0 auto; position: relative; }
.bf-center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------- the bar: one white card that floats over the page ---------- */
.bf-nav { position: sticky; top: 14px; z-index: 20; padding: 0 20px; }
.bf-bar { width: min(1120px, 100%); margin: 0 auto; height: 72px; padding: 0 14px 0 26px; display: flex; align-items: center; gap: 22px; background: #fff; border-radius: 26px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(23, 21, 58, .08); transition: box-shadow .2s; }
.bf-nav.scrolled .bf-bar { box-shadow: 0 0 0 1px var(--line), 0 14px 40px rgba(23, 21, 58, .16); }
.bf-logo img { height: 34px; width: auto; }
.bf-links { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.bf-links a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); }
.bf-links a:hover { color: #4b4f8f; }

/* ---------- buttons: a pill with a lip that presses down ---------- */
.go { display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  font: 800 21px/1.1 var(--f); letter-spacing: -.01em; color: #fff; background: var(--ink); padding: 20px 38px; border-radius: 999px; box-shadow: 0 6px 0 #05041a, 0 16px 30px rgba(23, 21, 58, .22);
  transition: translate .08s, box-shadow .08s, background .15s; -webkit-tap-highlight-color: transparent; }
.go img { width: 34px; height: 34px; margin: -8px 0 -8px -8px; rotate: -10deg; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); transition: rotate .25s cubic-bezier(.3, 1.8, .5, 1), scale .25s cubic-bezier(.3, 1.8, .5, 1); }
.go:hover { background: #24215a; }
.go:hover img { rotate: 8deg; scale: 1.12; }
.go:active, .go.down, .go.busy { translate: 0 5px; box-shadow: 0 1px 0 #05041a, 0 6px 14px rgba(23, 21, 58, .2); }
.go.busy { pointer-events: none; }
.go.busy::after { content: ""; width: .85em; height: .85em; border-radius: 50%; border: .16em solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: goSpin .7s linear infinite; }
@keyframes goSpin { to { rotate: 360deg; } }
.go.sm { font-size: 16px; padding: 13px 22px; box-shadow: 0 4px 0 #05041a; }
.go.sm img { width: 26px; height: 26px; margin: -6px 0 -6px -6px; }
.go.sm:active, .go.sm.down, .go.sm.busy { translate: 0 3px; box-shadow: 0 1px 0 #05041a; }
.go.yl { color: var(--ink); background: var(--yellow); box-shadow: 0 6px 0 var(--yellow-lip), 0 16px 30px rgba(217, 154, 0, .25); font-size: 19px; padding: 17px 30px; }
.go.yl:hover { background: #ffd23f; }
.go.yl:active { box-shadow: 0 1px 0 var(--yellow-lip); }
.go.wh { color: var(--ink); background: #fff; box-shadow: 0 0 0 2px var(--line), 0 6px 0 var(--lip); font-size: 19px; padding: 17px 30px; }
.go.wh:hover { background: var(--soft); }
.go.wh:active { box-shadow: 0 0 0 2px var(--line), 0 1px 0 var(--lip); }
.go.yl.busy::after, .go.wh.busy::after { border-color: rgba(23, 21, 58, .25); border-top-color: var(--ink); }

/* ---------- the top: one line, one button, the lesson playing under it ---------- */
.bf-hero { position: relative; margin-top: -86px; padding: 176px 0 0; background: radial-gradient(90% 60% at 50% 0%, #eef0ff 0%, #f6f1ff 38%, #fff 78%); overflow: hidden; }
.bf-hero h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: .98; font-weight: 900; letter-spacing: -.045em; }
.bf-sub { margin: 26px 0 34px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; color: var(--ink2); max-width: 30em; }
.bf-free { margin-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--mute); }
.bf-free b { color: var(--lip); margin: 0 3px; }
.bf-spark { position: absolute; fill: #fff; filter: drop-shadow(0 4px 10px rgba(110, 100, 220, .35)); animation: bfTw 3.6s ease-in-out infinite; }
.bf-spark.s1 { width: 64px; left: 15%; top: 250px; rotate: 12deg; }
.bf-spark.s2 { width: 44px; right: 17%; top: 200px; animation-delay: -1.2s; }
.bf-spark.s3 { width: 34px; right: 23%; top: 470px; rotate: 20deg; animation-delay: -2.3s; }
@keyframes bfTw { 50% { scale: .82; opacity: .75; } }
.bf-bear { position: absolute; width: clamp(150px, 19vw, 290px); height: auto; left: max(1.500%, calc(50% - 720px)); top: 300px; filter: drop-shadow(0 22px 22px rgba(23, 21, 58, .2)); animation: bfBob 4.4s ease-in-out infinite; }
.bf-bulb { position: absolute; width: clamp(84px, 9vw, 140px); height: auto; right: max(4%, calc(50% - 640px)); top: 300px; rotate: 14deg; filter: drop-shadow(0 16px 18px rgba(217, 154, 0, .35)); animation: bfBob 3.8s ease-in-out -1.5s infinite; }
@keyframes bfBob { 50% { translate: 0 -12px; } }
.bf-demo { margin: 64px auto 0; width: min(940px, 100%); padding: 22px; border-radius: 40px 40px 0 0; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(23, 21, 58, .14); border-bottom: 0; }
.hero-tab { min-width: 0; }
#heroTab .tab-device { transform: none !important; }
#heroTab { font-family: var(--f) !important; }

/* ---------- pick a subject ---------- */
main h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; font-weight: 900; letter-spacing: -.035em; }
.bf-pick { padding: 96px 0 30px; text-align: center; border-top: 1px solid var(--line); }
.fc-cards { margin: 38px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fc-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 12px 22px; border-radius: 26px; background: #fff; color: var(--ink); text-decoration: none; text-align: center;
  box-shadow: 0 0 0 2px var(--line), 0 6px 0 var(--lip); transition: translate .1s, box-shadow .1s, background .16s, opacity .25s, scale .25s; -webkit-tap-highlight-color: transparent; }
.fc-card:hover { translate: 0 -3px; box-shadow: 0 0 0 2px var(--c), 0 9px 0 var(--lip); }
.fc-card:active, .fc-card.down { translate: 0 5px; box-shadow: 0 0 0 2px var(--c), 0 1px 0 var(--lip); }
.fc-st { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--c); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14), inset 0 3px 0 rgba(255, 255, 255, .35); transition: scale .25s cubic-bezier(.3, 1.8, .5, 1), rotate .25s cubic-bezier(.3, 1.8, .5, 1); }
.fc-card:hover .fc-st { scale: 1.08; rotate: -5deg; }
.fc-st svg { width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.fc-st svg .dot, .fc-st svg .fill { fill: #fff; stroke: none; }
.fc-t b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.fc-t small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 600; color: var(--mute); }
.fc-card.sel { background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: 0 0 0 2px var(--c), 0 6px 0 var(--lip); }
.fc-card.sel .fc-st { animation: fcPop .5s cubic-bezier(.3, 1.9, .5, 1); }
@keyframes fcPop { 40% { scale: 1.25; rotate: -10deg; } }
.fc-cards.picked .fc-card:not(.sel) { opacity: .4; scale: .97; }
.bf-note { margin-top: 26px; font-size: 15.5px; font-weight: 600; }
.bf-note a { color: var(--ink2); text-underline-offset: 4px; }
.bf-note a:hover { color: var(--ink); }

/* ---------- how it works ---------- */
.bf-how { padding: 80px 0 40px; text-align: center; }
.bf-three { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.bf-step { padding: 28px 28px 30px; border-radius: 28px; background: var(--soft); }
.bf-step .n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: #fff; font-size: 21px; font-weight: 900; box-shadow: 0 4px 0 var(--lip); }
.bf-step:nth-child(1) .n { background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-lip); }
.bf-step:nth-child(2) .n { background: #8b6cff; color: #fff; box-shadow: 0 4px 0 #5b3fd1; }
.bf-step:nth-child(3) .n { background: var(--ok); color: #fff; box-shadow: 0 4px 0 #1f9e5a; }
.bf-step h3 { margin-top: 20px; font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.bf-step p { margin-top: 8px; font-size: 16px; color: var(--ink2); }

/* ---------- Study Worlds ---------- */
.bf-worlds { padding: 56px 0 30px; }
.bf-worlds-card { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: 40px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px var(--line), 0 8px 0 var(--lip); }
.bf-worlds-art { display: block; aspect-ratio: 16 / 7; background: #1a1038; overflow: hidden; }
.bf-worlds-art img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s cubic-bezier(.2, .9, .3, 1); }
.bf-worlds-art:hover img { scale: 1.04; }
.bf-worlds-t { padding: 36px 44px 40px; display: grid; grid-template-columns: 1fr auto; column-gap: 48px; align-items: start; }
.bf-worlds-t > * { grid-column: 1; }
.bf-worlds-t .bf-covers { grid-column: 2; grid-row: 1 / span 5; align-self: center; width: 400px; margin-top: 0; }
.bf-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--mute); }
.bf-kick i { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.bf-worlds-t h2 { margin-top: 10px; }
.bf-worlds-t > p { margin-top: 14px; color: var(--ink2); }
.bf-covers { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 380px; }
.bf-covers img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: 0 4px 0 var(--lip); }
.bf-covers img:nth-child(1) { rotate: -3deg; } .bf-covers img:nth-child(3) { rotate: 3deg; }
.bf-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.bf-worlds .bf-free { margin-top: 22px; }

/* ---------- the last ask ---------- */
.bf-end { padding: 70px 0 96px; }
.bf-end-bear { width: 200px; height: auto; margin-bottom: 4px; filter: drop-shadow(0 18px 18px rgba(23, 21, 58, .18)); animation: bfBob 3.6s ease-in-out infinite; }
.bf-end h2 { margin-bottom: 30px; font-size: clamp(36px, 5vw, 64px); }

.bf-foot { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 14.5px; color: var(--mute); }
.bf-foot .bf-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.bf-foot a { margin-left: 18px; color: var(--ink2); text-decoration: none; font-weight: 600; }
.bf-foot a:hover { color: var(--ink); }
.bf-foot span a:first-child { margin-left: 0; }

/* the loading screen between a press and the app (the page's script turns it on) */
.opening { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: #fff; opacity: 0; pointer-events: none; transition: opacity .22s; }
.opening.on { opacity: 1; pointer-events: auto; }
.opening img { width: 84px; height: 84px; animation: bfBob 1.1s ease-in-out infinite; }
.opening i { position: relative; display: block; width: 120px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.opening i::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 6px; background: var(--ink); animation: openingRun 1s ease-in-out infinite; }
@keyframes openingRun { to { left: 100%; } }

@media (max-width: 1100px) { .bf-bear { top: 520px; left: -30px; width: 170px; } .bf-bulb { top: 150px; right: 10px; width: 84px; } .bf-spark { display: none; } }
@media (max-width: 900px) {
  .bf-links a:not(.nav-in) { display: none; }
  .bf-bar { height: 62px; padding: 0 10px 0 18px; gap: 12px; border-radius: 22px; }
  .bf-nav { top: 8px; padding: 0 10px; }
  .bf-logo img { height: 28px; }
  .bf-hero { padding-top: 150px; }
  .bf-bear { display: none; }
  .bf-demo { margin-top: 44px; padding: 10px; border-radius: 26px 26px 0 0; }
  .fc-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fc-card:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: center; text-align: left; padding: 16px; }
  .fc-st { width: 60px; height: 60px; border-radius: 20px; } .fc-st svg { width: 36px; height: 36px; }
  .bf-pick { padding-top: 64px; }
  .bf-three { grid-template-columns: 1fr; }
  .bf-worlds-card { grid-template-columns: 1fr; border-radius: 30px; }
  .bf-worlds-t { padding: 26px 22px 28px; display: flex; flex-direction: column; align-items: flex-start; }
  .bf-worlds-t .bf-covers { width: 100%; margin-top: 22px; }
  .bf-worlds-art { aspect-ratio: 16 / 9; }
  .go { font-size: 19px; padding: 18px 30px; }
  .bf-foot a { margin: 0 16px 6px 0; display: inline-block; }
}
@media (max-width: 420px) { .go.sm img { display: none; } .bf-links { gap: 14px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* the look's own logo: a tile with a b and a spark, and the name in the page's font */
.bl-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.bl-logo .bl-mark { display: block; width: 36px; height: auto; flex: none; }
.bl-logo .bl-word { font-size: 23px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
@media (max-width: 420px) { .bl-logo .bl-mark { width: 31px; } .bl-logo .bl-word { font-size: 20px; } }

/* the lesson demo, on this look's white board: a flat white tablet, the board's ink dark (the demo's own script and drawing are untouched) */
html.bright #heroTab .tab-device { background: #fff; box-shadow: 0 0 0 2px var(--line), 0 10px 0 var(--lip), 0 40px 80px -30px #17153a44; transform: none; }
html.bright #heroTab:hover .tab-device { transform: translateY(-4px); }
html.bright #heroTab :is(.tab-btn-power, .tab-btn-vol, .tab-cam, .tab-engrave, .tab-glare, .tab-status, .tab-home, .ab-icon) { display: none; }
html.bright #heroTab .tab-display { background: #fff; box-shadow: none; padding-top: calc(var(--u) * .6); }
html.bright #heroTab .tab-appbar { border-bottom: 2px solid var(--line); }
html.bright #heroTab .ab-logo { display: inline-flex; align-items: center; gap: .4em; color: var(--ink); font: 800 max(calc(var(--u) * 1.9), 14px)/1 Inter, system-ui, sans-serif; letter-spacing: -.05em; }
html.bright #heroTab :is(.ab-logo, .boot-logo) svg { display: none; }
html.bright #heroTab .ab-logo::before { content: ''; width: max(calc(var(--u) * 2.9), 22px); aspect-ratio: 48 / 49; background: url(/site/bright/img/mark.svg) center / contain no-repeat; }
html.bright #heroTab .ab-logo::after { content: 'boredprof'; }
html.bright #heroTab .tab-title { color: var(--ink2); border-left-color: var(--line); font-family: Inter, system-ui, sans-serif; font-weight: 700; }
html.bright #heroTab .tab-pips i { background: #e1e2f0; } html.bright #heroTab .tab-pips i.done { background: var(--ink); } html.bright #heroTab .tab-pips i.now { box-shadow: inset 0 0 0 2px var(--ink); }
html.bright #heroTab .tab-screen { background: #fff; box-shadow: inset 0 0 0 2px var(--line); border-radius: calc(var(--u) * 1.6); }
html.bright #heroTab svg.tboard { filter: invert(1) hue-rotate(180deg) saturate(1.25); }
html.bright #heroTab .tab-subrow { color: var(--ink); font-family: Inter, system-ui, sans-serif; font-weight: 600; }
html.bright #heroTab .tab-go { background: var(--ink); box-shadow: 0 .28em 0 #05041a; font-family: Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -.01em; }
html.bright #heroTab .tab-go:active { box-shadow: 0 .05em 0 #05041a; }
html.bright #heroTab .tab-boot, html.bright #heroTab .tab-boot.on { background: #fff; animation: none; }
html.bright #heroTab .boot-logo::after { content: 'boredprof'; color: var(--ink); font: 800 calc(var(--u) * 4.6)/1 Inter, system-ui, sans-serif; letter-spacing: -.05em; }
html.bright #heroTab .boot-bar { background: #e4e5f2; } html.bright #heroTab .boot-bar i { background: var(--ink); }
html.bright #heroTab .boot-txt { color: var(--mute); font-family: Inter, system-ui, sans-serif; }

/* Dec 5 (Matt): the mark is the game's idea bulb, drawn flat; it blinks now and then */
.bl-logo .bl-mark { width: 42px; margin: -5px -2px -5px 0; overflow: visible; }
.bl-mark .bl-eyes { transform-box: fill-box; transform-origin: 50% 55%; animation: blBlink 6s 2s infinite; }
@keyframes blBlink { 0%, 95.500%, 100% { transform: none; } 97.500% { transform: scaleY(.12); } }
.bl-logo:hover .bl-mark { rotate: -8deg; transition: rotate .25s cubic-bezier(.3, 1.8, .5, 1); }
html.bright #heroTab .ab-logo::before { aspect-ratio: 55 / 58; width: max(calc(var(--u) * 3.2), 24px); }
@media (max-width: 420px) { .bl-logo .bl-mark { width: 36px; } }
