/* fogbreak.eu: the app's "broadcast analysis room", as a showcase. Colour is meaning:
   lime = you and what goes well, red = enemies and mistakes. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 600; font-display: swap; src: url("fonts/display-600.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("fonts/display-800.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap; src: url("fonts/body.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 700; font-display: swap; src: url("fonts/mono.woff2") format("woff2"); }
/* the Academy's diagrams are the app's own: they ask for the app's font names */
@font-face { font-family: "JetBrains Mono Variable"; font-weight: 400 700; font-display: swap; src: url("fonts/mono.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ink-0: #05070a; --ink-1: #0b0e14; --ink-2: #111620; --ink-3: #182030;
  --line: #1c2330; --line-2: #2b3445;
  --text: #eef1f6; --text-2: #a7afbd; --muted: #6c7588;
  --me: #d7ff3e; --ally: #38b6ff; --enemy: #ff4d5e; --warn: #ffb020;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(215, 255, 62, 0.08), transparent 60%),
    radial-gradient(900px 700px at 110% 30%, rgba(255, 77, 94, 0.06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--ink-0);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.kicker { font: 700 12px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--me); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
h2 { font-weight: 800; font-size: clamp(34px, 4.4vw, 54px); line-height: 0.95; margin: 10px 0 14px; max-width: 900px; }
h3 { font-weight: 800; font-size: 22px; line-height: 1.05; }
p { margin: 0; }
.lead { color: var(--text-2); font-size: 18px; max-width: 720px; }
section { padding: 84px 0; }
.sep { border-top: 1px solid var(--line); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(5, 7, 10, 0.78); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.brand img { display: block; width: 32px; height: 32px; border-radius: 8px; }
.nav nav { display: flex; gap: 18px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--text-2); font-size: 14.5px; }
.nav nav a:hover { color: var(--text); }
.lang { display: flex; gap: 2px; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; }
.lang a { text-decoration: none; font: 700 12px var(--mono); padding: 4px 7px; border-radius: 6px; color: var(--muted); }
.lang a.on { background: var(--ink-3); color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 10px; padding: 13px 22px; font: 800 17px var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.btn.primary { background: var(--me); color: var(--ink-0); box-shadow: 0 12px 34px -12px rgba(215, 255, 62, 0.6); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { border: 1px solid var(--line-2); color: var(--text-2); }
.btn.ghost:hover { color: var(--text); border-color: var(--text-2); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 44px; align-items: center; }
.hero h1 { font: 700 clamp(42px, 5.6vw, 76px)/1.03 var(--body); text-transform: none; letter-spacing: -0.035em; margin: 10px 0 20px; }
/* the home page: the title centred on its own, the reel underneath, all of it in the first screen:
   the reel takes the height left and its width follows (16:10), the coach beside it */
.hero.home { height: calc(100svh - 65px); min-height: 620px; max-height: 1080px; padding: 30px 0 26px; }
.hero.home .wrap { display: flex; flex-direction: column; height: 100%; max-width: 1320px; }
.hero-text { max-width: 1320px; margin: 0 auto; text-align: center; flex: 0 0 auto; }
.hero-text h1 { font-size: clamp(36px, 3.05vw, 60px); margin: 0 auto 16px; }
.hero-text h1 em { white-space: nowrap; }
.hero-text .chips { justify-content: center; margin-bottom: 14px; }
.hero-text .lead { margin: 0 auto; max-width: 820px; font-size: 17px; }
.hero-text .ctas { justify-content: center; margin: 18px 0 6px; }
.hero.home .demo { flex: 1 1 auto; min-height: 0; margin: 22px auto 0; display: grid; grid-template-columns: auto 330px; grid-template-rows: minmax(0, 1fr) auto; max-width: 100%; }
.hero.home .demo > video { grid-column: 1; grid-row: 1; height: 100%; width: auto; max-width: calc(100vw - 390px); min-height: 0; aspect-ratio: 16 / 10; }
.hero.home .demo > .demo-dots { grid-column: 1; grid-row: 2; padding-bottom: 10px; }
.hero.home .demo > .demo-coach { grid-column: 2; grid-row: 1 / span 2; border-top: 0; border-left: 2px solid var(--enemy); min-height: 0; overflow: hidden; }
.hero.home .demo > .demo-coach.good { border-left-color: var(--me); }
.hero.home .demo > .demo-coach.map { border-left-color: var(--warn); }
.demo-coach.map header span { color: var(--warn); }
.hero.home .demo-clock { right: calc(330px + 14px); }
.hero h1 em { font-style: normal; color: var(--me); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 10px; }
.hero .note { color: var(--muted); font-size: 13.5px; }
.trust-line { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; }

/* the debrief, shown as it is in the app */
.demo { margin: 0; position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); background: var(--ink-1); }
.demo > img, .demo > video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--ink-2); }
.demo-clock { position: absolute; top: 14px; right: 14px; padding: 4px 9px; border-radius: 8px; background: rgba(5, 7, 10, 0.75); border: 1px solid var(--line-2); font-size: 13px; color: var(--me); }
.demo-label { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 8px; background: rgba(5, 7, 10, 0.75); border: 1px solid var(--line-2); font-size: 12px; color: var(--text-2); }
.demo-coach { padding: 16px 18px 18px; background: var(--ink-1); border-top: 2px solid var(--enemy); }
.demo-coach header { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.demo-coach header img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px var(--warn); }
.demo-coach header b { display: block; font: 800 15px var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); }
.demo-coach header span { font: 600 13px var(--body); color: var(--enemy); }
.demo-coach h3 { font-size: 20px; margin-top: 2px; }
.bubble { background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin-top: 7px; width: fit-content; max-width: 100%;
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.bubble.on { opacity: 1; transform: none; }

/* the promise in three seconds */
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 12px 7px 30px; position: relative; border-radius: 999px; border: 1px solid rgba(215, 255, 62, 0.45); background: rgba(215, 255, 62, 0.07); font-size: 14px; font-weight: 600; }
.chips li::before { content: "✓"; position: absolute; left: 12px; top: 50%; translate: 0 -50%; line-height: 1; color: var(--me); font-weight: 800; }
.chips li.no { border-color: rgba(255, 77, 94, 0.55); background: rgba(255, 77, 94, 0.08); }
.chips li.no::before { content: "✕"; color: var(--enemy); }

/* the reel: dots under the video, a red or lime edge for a mistake or a good play */
.demo-dots { position: absolute; left: 14px; right: 14px; top: calc((100% - 0px) * 0); display: none; }
.demo > .demo-dots { display: flex; gap: 6px; position: static; padding: 10px 16px 0; background: var(--ink-1); }
.demo-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; cursor: pointer; }
.demo-dots i em { display: block; height: 100%; width: 0; background: var(--text-2); }
.demo-coach.good { border-top-color: var(--me); }
.demo-coach.good header img { box-shadow: 0 0 0 2px var(--me); }
.demo-coach.good header span { color: var(--me); }
.demo-coach[hidden] { display: none; }
.demo-coach { min-height: 250px; }

/* no AI soup */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.side { padding: 24px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--ink-1); }
.side > span { font: 600 14px var(--body); color: var(--muted); }
.side blockquote { margin: 14px 0 18px; font-size: 19px; line-height: 1.45; }
.side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.side li { padding-left: 26px; position: relative; color: var(--text-2); font-size: 15px; }
.them blockquote { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 77, 94, 0.7); }
.them li::before { content: "✕"; position: absolute; left: 0; color: var(--enemy); font-weight: 800; }
.us { border-color: var(--me); background: linear-gradient(180deg, rgba(215, 255, 62, 0.07), transparent 70%), var(--ink-1); }
.us > span { color: var(--me); }
.us blockquote { color: var(--text); }
.us li::before { content: "✓"; position: absolute; left: 0; color: var(--me); font-weight: 800; }

/* before, during, after */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; counter-reset: phase; }
.phase { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--ink-1); position: relative; }
.phase b { display: block; font: 800 30px/1 var(--display); text-transform: uppercase; color: var(--me); margin-bottom: 10px; }
.phase p { color: var(--text-2); font-size: 15px; }

/* the last call */
.final { text-align: center; }
.final .app-icon { display: block; width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 18px 60px -18px rgba(215, 255, 62, 0.55); }
.final h2 { margin-left: auto; margin-right: auto; }
.final .lead { margin: 0 auto; }
.final .ctas { justify-content: center; display: flex; margin: 26px 0 10px; }
.final .note { color: var(--muted); font-size: 14px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.step { padding: 22px; border-radius: 18px; background: var(--ink-1); border: 1px solid var(--line); }
.step b { font: 800 44px/1 var(--display); color: var(--me); }
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--text-2); font-size: 15px; }

/* what's in the app: a bento of drawn scenes that play when they come into view (build_site.bento) */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.bt { position: relative; grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  border: 1px solid var(--line-2); background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 60%), var(--ink-1);
  transition: border-color 0.25s, transform 0.25s; }
.bt:hover { border-color: rgba(215, 255, 62, 0.5); transform: translateY(-2px); }
.bt.big { grid-column: span 3; }
.bt-vis { position: relative; flex: 1 1 auto; min-height: 190px; display: grid; place-items: center; padding: 18px 18px 0; }
.bt-vis svg { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.bt-txt { padding: 14px 20px 20px; }
.bt-txt h3 { font-size: 24px; }
.bt-txt p { margin-top: 5px; color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.bt-link { position: absolute; inset: 0; }
/* what cost you, what went right: one game, its moments on a timeline, each one said */
.bt-game { width: min(100%, 420px); }
.bt-track { position: relative; height: 8px; border-radius: 4px; background: var(--ink-3); margin: 26px 0 8px; }
.bt-fill { position: absolute; inset: 0 100% 0 0; border-radius: 4px; background: linear-gradient(90deg, #2b3445, #3a4659); }
.bt.in .bt-fill { animation: bt-grow 1.6s ease-out 0.2s forwards; }
@keyframes bt-grow { to { right: 0; } }
.bt-mark { position: absolute; top: 50%; translate: -50% -50%; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 800 13px/1 var(--body); color: var(--ink-0); opacity: 0; scale: 0.4; }
.bt-mark.ko { background: var(--enemy); box-shadow: 0 0 0 4px rgba(255, 77, 94, 0.2); }
.bt-mark.ok { background: var(--me); box-shadow: 0 0 0 4px rgba(215, 255, 62, 0.2); }
.bt.in .bt-mark.ko { animation: bt-pop2 0.35s ease-out 0.8s forwards; }
.bt.in .bt-mark.ok { animation: bt-pop2 0.35s ease-out 1.3s forwards; }
@keyframes bt-pop2 { to { opacity: 1; scale: 1; } }
.bt-clock { display: flex; justify-content: space-between; font: 600 11px var(--mono); color: var(--muted); margin-bottom: 16px; }
.bt-moment { display: flex; gap: 10px; align-items: baseline; margin-top: 8px; padding: 9px 12px; border-radius: 10px; font-size: 14px;
  background: var(--ink-2); border: 1px solid var(--line-2); border-left-width: 3px; opacity: 0; translate: 0 8px; }
.bt-moment em { font-style: normal; font-size: 12.5px; font-weight: 700; }
.bt-moment.ko { border-left-color: var(--enemy); } .bt-moment.ko em { color: var(--enemy); }
.bt-moment.ok { border-left-color: var(--me); } .bt-moment.ok em { color: var(--me); }
.bt.in .bt-moment.ko { animation: bt-in2 0.4s ease-out 1s forwards; }
.bt.in .bt-moment.ok { animation: bt-in2 0.4s ease-out 1.5s forwards; }
@keyframes bt-in2 { to { opacity: 1; translate: 0 0; } }
/* what each moment weighed: the chances of winning over that game, a real chart */
.bt-chart { max-width: 420px !important; }
.bt-axis { font: 500 9.5px var(--mono); fill: var(--muted); }
.bt-axis.title { font-weight: 700; letter-spacing: 0.08em; fill: var(--text-2); }
.bt-grid { stroke: #1a2130; }
.bt-half { stroke: #2b3445; stroke-dasharray: 3 4; }
.bt-area { fill: rgba(215, 255, 62, 0.07); opacity: 0; }
.bt-line { fill: none; stroke: var(--me); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.bt-at { stroke-width: 1.2; stroke-dasharray: 2 3; opacity: 0; }
.bt-at.ko { stroke: var(--enemy); } .bt-at.ok { stroke: var(--me); }
.bt-note { font: 700 10px var(--mono); opacity: 0; }
.bt-note.ko { fill: var(--enemy); } .bt-note.ok { fill: var(--me); }
.bt.in .bt-line { animation: bt-draw 2s ease-in-out 0.2s forwards; }
.bt.in .bt-area { animation: bt-fade 0.6s ease-out 1.6s forwards; }
.bt.in .bt-at.ko, .bt.in .bt-note.ko { animation: bt-fade 0.3s ease-out 1.1s forwards; }
.bt.in .bt-at.ok, .bt.in .bt-note.ok { animation: bt-fade 0.3s ease-out 1.6s forwards; }
@keyframes bt-draw { to { stroke-dashoffset: 0; } }
@keyframes bt-fade { to { opacity: 1; } }
.bt-tag { position: absolute; right: 16px; top: 14px; font: 600 11px var(--mono); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
/* quests */
.bt-quest { width: min(100%, 280px); padding: 14px 16px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line-2); }
.bt-quest > b { font: 800 22px/1 var(--display); text-transform: uppercase; color: var(--me); margin-right: 8px; }
.bt-quest > span { font: 600 12px var(--mono); color: var(--muted); }
.bt-pips { display: flex; gap: 5px; margin: 10px 0 8px; }
.bt-pips i { flex: 1; height: 5px; border-radius: 3px; background: var(--ink-3); }
.bt-pips i.on { background: var(--me); }
.bt-pips i.fill { background: linear-gradient(90deg, var(--me) 50%, var(--ink-3) 50%) 100% 0 / 200% 100%; }
.bt.in .bt-pips i.fill { animation: bt-fill 1s ease-out 0.8s forwards; }
@keyframes bt-fill { to { background-position: 0 0; } }
.bt-quest ul { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--text-2); }
.bt-quest li { padding-left: 18px; position: relative; margin: 3px 0; }
.bt-quest li::before { content: "✓"; position: absolute; left: 0; color: var(--me); font-weight: 800; }
.bt-quest strong { display: inline-block; margin-top: 8px; padding: 4px 9px; border-radius: 999px; font-size: 12px; color: var(--ink-0);
  background: var(--me); opacity: 0; }
.bt.in .bt-quest strong { animation: bt-fade 0.3s ease-out 1.8s forwards; }
/* the academy: a wave frozen in front of your tower */
.bt-lanebar { fill: #101520; stroke: var(--line-2); }
.bt-tower.ally { fill: #0b2233; stroke: var(--ally); stroke-width: 2; } .bt-tower.foe { fill: #2a0f15; stroke: var(--enemy); stroke-width: 2; }
.bt-range { fill: none; stroke: var(--ally); stroke-opacity: 0.35; stroke-dasharray: 3 5; }
.bt-wave .ally { fill: var(--ally); } .bt-wave .foe { fill: var(--enemy); }
.bt-meet { stroke: var(--me); stroke-width: 2; opacity: 0; }
.bt-wave { transform: translateX(120px); }
.bt.in .bt-wave { animation: bt-come 1.6s cubic-bezier(.3, .7, .3, 1) 0.2s forwards, bt-hold 2.4s ease-in-out 1.8s infinite; }
.bt.in .bt-meet { animation: bt-fade 0.3s ease-out 1.6s forwards; }
@keyframes bt-come { to { transform: translateX(0); } }
@keyframes bt-hold { 50% { transform: translateX(4px); } }
.bt-badge { position: absolute; bottom: 4px; right: 18px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(215, 255, 62, 0.6);
  color: var(--me); font: 700 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; }
.bt.in .bt-badge { animation: bt-fade 0.3s ease-out 1.8s forwards; }
/* builds, imported */
.bt-items { display: grid; grid-template-columns: repeat(6, 38px); gap: 7px; }
.bt-items i { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-2); opacity: 0; transform: translateY(-14px);
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.55), rgba(56, 182, 255, 0.25)), var(--ink-3); }
.bt-items i:nth-child(2n) { background: linear-gradient(135deg, rgba(56, 182, 255, 0.5), rgba(215, 255, 62, 0.2)), var(--ink-3); }
.bt-items i:nth-child(3n) { background: linear-gradient(135deg, rgba(255, 77, 94, 0.45), rgba(255, 176, 32, 0.25)), var(--ink-3); }
.bt.in .bt-items i { animation: bt-drop 0.4s ease-out calc(0.3s + var(--d)) forwards; }
@keyframes bt-drop { to { opacity: 1; transform: none; } }
.bt-vis .bt-imported { position: absolute; bottom: 22px; padding: 5px 11px; border-radius: 999px; background: var(--me); color: var(--ink-0);
  font-size: 12.5px; opacity: 0; }
.bt-select .bt-vis { place-items: center; align-content: center; }
.bt.in .bt-imported { animation: bt-fade 0.3s ease-out 1.3s forwards; }
.bento-more { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bento-more li { padding: 8px 14px 8px 30px; position: relative; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-1);
  color: var(--text-2); font-size: 14px; font-weight: 600; }
.bento-more li::before { content: "+"; position: absolute; left: 13px; color: var(--me); font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .bt *, .bt.in * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .bt-wave { transform: none; } .bt-items i { transform: none; } .bt-fill { right: 0; } .bt-mark, .bt-moment { scale: 1; translate: 0 0; }
}
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bt, .bt.big { grid-column: span 1; } .bt.big:first-child { grid-column: span 2; } }
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .bt, .bt.big, .bt.big:first-child { grid-column: auto; }
  .bt-vis { min-height: 150px; padding: 14px 14px 0; }
  .bt-txt { padding: 10px 16px 16px; }
  .bt-txt h3 { font-size: 20px; }
  .bt-txt p { font-size: 13.5px; }
  .bento-more li { font-size: 12.5px; padding: 6px 11px 6px 26px; }
  .bento-more li::before { left: 11px; }
}
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; }
.feature { padding: 20px; border-radius: 16px; background: var(--ink-1); border: 1px solid var(--line); }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14.5px; }
.feature.hot { border-color: rgba(215, 255, 62, 0.45); background: linear-gradient(180deg, rgba(215, 255, 62, 0.06), transparent 60%), var(--ink-1); }

/* coaches */
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; }
.coach { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); background: var(--ink-1); display: flex; flex-direction: column; }
.coach-art { position: relative; aspect-ratio: 1; overflow: hidden; }
.coach-rig { position: absolute; inset: 0; transform-origin: 50% 100%;
  animation: coach-breathe var(--breathe, 4.4s) ease-in-out var(--delay, 0s) infinite, coach-sway var(--sway, 9s) ease-in-out var(--delay, 0s) infinite; }
.coach-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.coach-art .coach-happy { opacity: 0; transition: opacity 0.35s ease; }
.coach:hover .coach-happy { opacity: 1; }
.coach-art .coach-blink { opacity: 0; }
.coach-art .coach-blink.on { opacity: 1; }
.coach-glow { position: absolute; width: 22%; height: 22%; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow) 75%, transparent), transparent 70%);
  mix-blend-mode: screen; animation: coach-lens 2.8s ease-in-out infinite; }
@keyframes coach-breathe { 0%, 100% { scale: 1.03; } 50% { scale: 1.052 1.06; } }
@keyframes coach-sway { 0%, 100% { rotate: -0.7deg; } 50% { rotate: 0.7deg; } }
@keyframes coach-lens { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .coach-rig, .coach-glow { animation: none; } }
.coach div { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.coach h3 { font-size: 30px; }
.coach .role { font: 500 14px var(--body); font-style: italic; color: var(--me); }
.coach p { color: var(--text-2); font-size: 14px; }
.coach q { display: block; margin-top: 6px; padding: 9px 12px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line-2); font-size: 14px; quotes: none; }

/* elo + trust */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.promises { display: flex; flex-direction: column; gap: 12px; }
.promise { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-1); }
.promise h3 { font-size: 20px; margin-bottom: 6px; }
.promise p { color: var(--text-2); font-size: 15px; }
.tiers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; }
.tiers span { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); font: 700 12px var(--mono); color: var(--text-2); }
.tiers span.focus { border-color: var(--me); color: var(--me); }

/* the AI, in numbers */
.ai-band { border-radius: 22px; padding: 38px; border: 1px solid var(--line-2); background: radial-gradient(90% 120% at 100% 0%, rgba(215, 255, 62, 0.1), transparent 60%), var(--ink-1); }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.stat { padding: 12px 16px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); min-width: 170px; }
.stat b { display: block; font: 700 32px/1.1 var(--mono); color: var(--me); }
.stat span { font-size: 12.5px; color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 14px; margin-top: 30px; }
.plan { padding: 26px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--ink-1); }
.plan.pro { border-color: var(--me); }
.plan h3 { font-size: 28px; }
.price { margin: 10px 0 2px; font: 800 48px/1 var(--display); }
.price small { font: 600 16px var(--body); color: var(--muted); }
.plan .note { color: var(--muted); font-size: 13px; }
.plan .founder { margin: 14px 0 0; font-size: 13px; color: var(--me); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.plan li { padding-left: 24px; position: relative; color: var(--text-2); font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--me); font-weight: 700; }
.beta { margin-top: 18px; display: inline-block; padding: 7px 12px; border-radius: 10px; border: 1px dashed var(--me); color: var(--me); font-size: 14px; }

/* faq */
.faq { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--ink-1); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--me); font: 700 18px var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--text-2); }

/* AI page */
.corpus { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.corpus div { display: grid; grid-template-columns: 130px 1fr 70px; gap: 12px; align-items: center; font-size: 14px; }
.corpus i { height: 10px; border-radius: 5px; background: var(--ink-3); overflow: hidden; }
.corpus em { display: block; height: 100%; background: var(--me); border-radius: 5px; }
.corpus b { font: 600 13px var(--mono); text-align: right; color: var(--text-2); }
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.card { padding: 24px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--ink-1); }
.card > p { color: var(--text-2); margin: 8px 0 14px; }
.calib { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: center; margin-top: 10px; }
.calib svg { width: 190px; height: 190px; }
.calib .diag { stroke: var(--line-2); stroke-dasharray: 4 4; }
.calib .axis-line { stroke: var(--line-2); }
.calib .curve { fill: none; stroke: var(--me); stroke-width: 2; }
.calib circle { fill: var(--me); }
.calib text { fill: var(--muted); font: 11px var(--body); }
.calib figcaption { color: var(--muted); font-size: 13px; }
.small { font-size: 13px; color: var(--muted); margin-top: 12px; }
.pipeline { counter-reset: step; list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pipeline li { counter-increment: step; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); color: var(--text-2); font-size: 14.5px; }
.pipeline li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 30px/1 var(--display); color: var(--me); margin-bottom: 8px; }
.pipeline b { display: block; color: var(--text); font: 800 19px var(--display); text-transform: uppercase; margin-bottom: 4px; }

/* legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 40px; }
.legal h3 { margin: 30px 0 8px; font-size: 22px; }
.legal p, .legal li { color: var(--text-2); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 50px; margin-top: 30px; }
footer .wrap { display: flex; flex-direction: column; gap: 16px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
footer .links a { color: var(--text-2); text-decoration: none; }
footer .riot { font-size: 12px; color: var(--muted); max-width: 900px; }

@media (max-width: 980px) {
  .hero .wrap, .split, .models { grid-template-columns: 1fr; }
  .hero.home { height: auto; min-height: 0; max-height: none; }
  .hero.home .wrap { height: auto; }
  .hero.home .demo { grid-template-columns: 1fr; }
  .hero.home .demo > video { height: auto; width: 100%; max-width: 100%; }
  .hero.home .demo > .demo-coach { grid-column: 1; grid-row: 3; border-left: 0; border-top: 2px solid var(--enemy); }
  .hero.home .demo > .demo-coach.good { border-top-color: var(--me); }
  .hero.home .demo-clock { right: 14px; }
  .features, .coaches, .phases { grid-template-columns: repeat(2, 1fr); }
  .versus { grid-template-columns: 1fr; }
  .steps, .pipeline { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  .features, .coaches, .plans, .phases { grid-template-columns: 1fr; }
  .calib { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

.coach.soon { opacity: 0.55; }

/* the fog lifts once on the home page: a canvas of drifting puffs over the title, the chips and the buttons,
   the text sharpening under it (the script removes all of it after 2.6 s) */
.hero-text { position: relative; }
.fog-veil { display: none; }
.fog .fog-veil { display: block; position: fixed; left: 0; pointer-events: none; z-index: 3;
  /* the full width of the screen; only the top and bottom fade out: no edge in sight */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); }
.hero.home { overflow-x: clip; }  /* the fog is wider than the text: never a horizontal scroll */
.fog .hero-text.fog-in > :not(.fog-veil) { animation: unfog 2.5s cubic-bezier(.55, 0, .35, 1) 0.2s both; }  /* no script needed to clear */
@keyframes unfog { from { filter: blur(7px); opacity: 0.35; } to { filter: blur(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-text.fog-in > :not(.fog-veil) { animation: none; } .fog-veil { display: none; } }

/* the nav: brand, links, languages and the button on one centre line */
.nav .wrap > * { align-self: center; }
.nav .btn.small { line-height: 1; padding: 9px 14px 8px; margin: 0; }
.nav nav a, .lang a { line-height: 1; }
/* the SEO kicker above the home title: says what Fogbreak is, in the words people search */
.hero-kicker { margin: 0 0 10px; font: 600 13px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }

/* the waitlist: an email and a button, the answer under it */
.waitlist { display: flex; gap: 10px; justify-content: center; margin: 26px auto 10px; max-width: 520px; }
.waitlist input[type=email] { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--ink-2); color: var(--text); font: 500 16px var(--body); }
.waitlist input[type=email]:focus { outline: 2px solid var(--me); outline-offset: 1px; }
.waitlist.done { opacity: 0.6; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-more { margin-top: 18px; color: var(--text-2); }
.faq-more a { color: var(--me); }
@media (max-width: 560px) { .waitlist { flex-direction: column; } }

.subscribed-note { position: fixed; left: 50%; top: 80px; translate: -50% 0; z-index: 20; padding: 12px 18px; border-radius: 12px;
  background: var(--ink-3); border: 1px solid var(--me); color: var(--text); font-weight: 600; box-shadow: 0 20px 60px -20px #000; }

/* the live figures (live_script): the digits keep their width while they count up */
[data-live] { font-variant-numeric: tabular-nums; }

/* a phone: its own layout, not the desktop one shrunk. Everything stays (nothing hidden that the page promises),
   but in the size of a phone: smaller type, cards turned into short lists, the coaches as a row each, the plans
   side by side in their essentials. The goal on a phone: understand in a few seconds, leave an e-mail for the PC. */
@media (max-width: 700px) {
  body { font-size: 15px; line-height: 1.5; }
  section { padding: 38px 0; }
  h2 { font-size: clamp(26px, 7.6vw, 34px); margin: 6px 0 10px; }
  h3 { font-size: 18px; }
  .lead { font-size: 15px; }
  .wrap { padding: 0 16px; }
  /* the nav */
  .nav .wrap { height: 56px; gap: 10px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .nav .btn.small { padding: 8px 10px 7px; font-size: 12.5px; }
  .lang a { padding: 4px 6px; font-size: 11px; }
  /* the hero: the title fits any width, the promise, one button, the reel */
  .hero.home { padding: 18px 0 6px; }
  .hero-kicker { font-size: 10.5px; letter-spacing: 0.1em; margin-bottom: 8px; }
  .hero-text h1 { font-size: clamp(26px, 7.8vw, 36px); letter-spacing: -0.03em; margin-bottom: 12px; }
  .hero-text h1 em { white-space: normal; }
  .hero-text .chips { gap: 5px; margin-bottom: 10px; }
  .chips li { font-size: 12.5px; padding: 5px 10px 5px 25px; }
  .chips li::before { left: 10px; }
  .hero .ctas { margin: 12px 0 4px; gap: 8px; }
  .hero .ctas .btn { flex: 1 1 0; justify-content: center; padding: 11px 10px; font-size: 14.5px; }
  .hero .note { font-size: 12px; }
  .hero.home .demo { margin-top: 14px; border-radius: 14px; }
  .demo-coach { min-height: 170px; padding: 12px 14px 14px; }
  .demo-coach header img { width: 40px; height: 40px; border-radius: 10px; }
  .demo-coach h3 { font-size: 17px; }
  .bubble { font-size: 13px; padding: 6px 10px; }
  .btn { padding: 11px 16px; font-size: 15px; }
  /* chatbot vs Fogbreak: the two sentences, their reasons shortened */
  .versus { gap: 8px; margin-top: 16px; }
  .side { padding: 14px 16px; border-radius: 14px; }
  .side > span { font-size: 12.5px; }
  .side blockquote { margin: 8px 0 10px; font-size: 15.5px; }
  .side ul { gap: 4px; }
  .side li { font-size: 13.5px; padding-left: 22px; }
  /* before / during / after, and the features: short rows, not boxes */
  .phases, .features { grid-template-columns: 1fr; gap: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; background: var(--ink-1); }
  .phase, .feature { padding: 12px 14px; border: 0; border-radius: 0; border-top: 1px solid var(--line); background: none; }
  .phase:first-child, .feature:first-child { border-top: 0; }
  .phase b { display: inline; font-size: 19px; margin: 0 8px 0 0; }
  .phase p, .feature p { font-size: 13.5px; line-height: 1.45; }
  .phase p { display: inline; }
  .feature h3 { font-size: 17px; margin-bottom: 3px; }
  .feature.hot { background: linear-gradient(90deg, rgba(215, 255, 62, 0.06), transparent 70%); }
  .feature.hot h3 { color: var(--me); }
  /* the coaches: one row each, the portrait small */
  .coaches { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .coach { display: grid; grid-template-columns: 84px minmax(0, 1fr); border-radius: 14px; }
  .coach-art { aspect-ratio: auto; height: 100%; min-height: 96px; }
  .coach div { padding: 10px 12px; gap: 2px; }
  .coach-art div { padding: 0; }
  .coach h3 { font-size: 22px; }
  .coach .role { font-size: 12.5px; }
  .coach p { font-size: 13px; line-height: 1.4; }
  .coach q { display: none; }
  /* rank + promises */
  .split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tiers { margin-top: 12px; gap: 4px; }
  .tiers span { padding: 4px 7px; font-size: 10.5px; }
  .promises { gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ink-1); }
  .promise { padding: 12px 14px; border: 0; border-radius: 0; border-top: 1px solid var(--line); background: none; }
  .promise:first-child { border-top: 0; }
  .promise h3 { font-size: 17px; margin-bottom: 3px; }
  .promise p { font-size: 13.5px; line-height: 1.45; }
  /* the corpus, live */
  .ai-band { padding: 20px 16px; border-radius: 16px; }
  .stats { gap: 8px; margin: 14px 0; }
  .stat { min-width: 0; flex: 1 1 0; padding: 10px 12px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 11.5px; }
  /* the plans, side by side: name, price, what's in */
  .plans { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .plan { padding: 14px 12px; border-radius: 14px; }
  .plan h3 { font-size: 20px; }
  .price { font-size: 30px; margin: 4px 0 2px; }
  .price small { display: block; font-size: 12px; margin-top: 2px; }
  .plan .note { font-size: 11px; line-height: 1.35; }
  .plan ul { margin-top: 10px; gap: 6px; }
  .plan li { font-size: 12.5px; line-height: 1.35; padding-left: 16px; }
  .plan .founder { font-size: 11.5px; line-height: 1.35; }
  .beta { font-size: 12.5px; }
  /* the FAQ and the last call */
  .faq { margin-top: 14px; gap: 6px; }
  .faq details { padding: 0 14px; border-radius: 12px; }
  .faq summary { padding: 12px 0; font-size: 14.5px; }
  .faq details p { font-size: 14px; }
  .final .app-icon { width: 64px; height: 64px; margin-bottom: 14px; border-radius: 16px; }
  footer { padding: 24px 0 34px; }
}

/* ---------------------------------------------------------------- the Academy (tools/build_site.py: academy_*) */
.ac-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ac-band h2 { margin-top: 0; }
.academy .hero-kicker { margin-bottom: 6px; }
.ac-head { padding: 56px 0 10px; }
.ac-head h1 { font-size: clamp(44px, 6vw, 72px); line-height: 0.95; }
.ac-head .lead { margin-top: 14px; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.ac-chips a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-1); color: var(--text-2);
  text-decoration: none; font-size: 14px; font-weight: 600; }
.ac-chips a:hover { color: var(--text); border-color: var(--text-2); }
.ac-group { padding: 34px 0 0; }
.ac-group h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: clamp(28px, 3.2vw, 38px); }
.ac-group h2 span { font: 500 15px/1.3 var(--body); text-transform: none; color: var(--muted); letter-spacing: 0; }
.ac-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ac-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--ink-1); color: var(--text); text-decoration: none; }
.ac-tile:hover { border-color: var(--me); }
.ac-tile b { font: 800 21px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.ac-tile span { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.ac-tile .ac-meta { margin-top: auto; padding-top: 4px; }
.ac-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ac-meta b { font: 700 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.ac-meta i { font: 700 11px/1 var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ally); }
.ac-meta b.ac-tier { padding: 4px 8px; border-radius: 999px; color: var(--tier); border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent);
  background: color-mix(in srgb, var(--tier) 10%, transparent); }
/* the index's hero: the coach says a notion, the notion plays */
.ac-head-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.ac-demo { margin: 0; padding: 14px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--ink-1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.ac-demo figcaption { display: flex; align-items: center; gap: 10px; }
.ac-demo figcaption img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px var(--warn); }
.ac-demo figcaption b { display: block; font: 800 15px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); }
.ac-demo figcaption span { font-size: 13px; color: var(--text-2); font-style: italic; }
.ac-said { margin: 10px 0 12px; padding: 10px 13px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.5; }
.ac-said a { color: var(--me); font-weight: 700; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.ac-demo .ac-stage .bs-caption { min-height: 0; padding-bottom: 10px; }
.ac-demo .ac-stage .bs-caption p { font-size: 13.5px; }
.ac-demo-more { display: inline-block; margin-top: 10px; color: var(--text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.ac-demo-more:hover { color: var(--me); }
@media (max-width: 980px) { .ac-head-grid { grid-template-columns: 1fr; gap: 26px; } }
.ac-diff { display: inline-flex; gap: 3px; }
.ac-diff i { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--line-2); }
.ac-diff i.on { background: var(--me); }
.ac-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 44px 0 10px; padding: 22px 24px;
  border-radius: 18px; border: 1px solid rgba(215, 255, 62, 0.45); background: linear-gradient(120deg, rgba(215, 255, 62, 0.08), transparent 60%), var(--ink-1); }
.ac-cta b { display: block; font: 800 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.ac-cta p { margin-top: 6px; color: var(--text-2); max-width: 620px; }
/* one notion */
.ac-notion { padding-top: 34px; padding-bottom: 20px; }
.ac-crumbs { font: 600 13px var(--body); color: var(--muted); }
.ac-crumbs a { color: var(--text-2); text-decoration: none; }
.ac-crumbs a:hover { color: var(--me); }
.ac-title h1 { margin: 10px 0 8px; font: 800 clamp(40px, 5.4vw, 66px)/0.95 var(--display); text-transform: uppercase; }
.ac-title h1 em { font-style: normal; color: var(--me); }
.ac-title .lead { margin-bottom: 14px; }
.ac-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; margin-top: 24px; align-items: start; }
.ac-side h2 { margin: 18px 0 8px; font: 700 12px/1 var(--mono); letter-spacing: 0.14em; color: var(--muted); }
.ac-side h2:first-child { margin-top: 4px; }
.ac-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ac-side li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.ac-side li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--me); }
.ac-side li b { color: var(--text); }
.ac-box { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.ac-box b { display: block; margin-bottom: 6px; font: 700 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.ac-box.ko { border: 1px solid rgba(255, 77, 94, 0.45); background: rgba(255, 77, 94, 0.06); }
.ac-box.ko b { color: var(--enemy); }
.ac-box.know { border: 1px solid rgba(255, 176, 32, 0.4); background: rgba(255, 176, 32, 0.05); }
.ac-box.know b { color: var(--warn); }
.ac-ranks, .ac-usage, .ac-related { margin-top: 34px; }
.ac-ranks h2, .ac-usage h2, .ac-related h2 { font-size: clamp(26px, 3vw, 34px); }
.ac-ranks > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ac-ranks > div > div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-1); }
.ac-ranks b { font: 700 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--me); }
.ac-ranks p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.ac-usage { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-1); }
.ac-usage h2 { margin-top: 0; }
.ac-usage p { color: var(--text-2); font-size: 15px; }
.ac-usage small { display: block; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.ac-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; height: 170px; margin-top: 14px; }
.ac-bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; min-width: 0; }
.ac-bars i { width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--me), rgba(215, 255, 62, 0.45)); }
.ac-bars span { font: 700 12px/1 var(--mono); color: var(--text-2); white-space: nowrap; }
.ac-bars em { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ac-related > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-related a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-1); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.ac-related a:hover { border-color: var(--me); color: var(--me); }
.ac-related a.all { border-style: dashed; color: var(--text-2); }
/* the diagram: the steps written out until the script draws it (and for search engines), then the app's scene */
.ac-stage { border-radius: 16px; border: 1px solid var(--line-2); background: #07090d; overflow: hidden; }
.ac-steps { margin: 0; padding: 18px 20px 18px 40px; color: var(--text-2); }
.ac-steps li { margin: 6px 0; }
.ac-steps b { color: var(--text); }
.bs-scene svg { display: block; width: 100%; height: auto; }
.bs-steps { display: flex; gap: 6px; padding: 10px 12px 0; flex-wrap: wrap; align-items: center; }
.bs-steps button { cursor: pointer; }
.bs-step { border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text-2); border-radius: 999px; padding: 6px 11px;
  font: 700 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.bs-step:hover { color: var(--text); }
.bs-step.on { background: var(--me); color: var(--ink-0); border-color: var(--me); }
.bs-step.bad.on { background: var(--enemy); border-color: var(--enemy); }
.bs-play { margin-left: auto; border: 0; background: none; color: var(--muted); font: 700 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.bs-play:hover { color: var(--text); }
.bs-caption { padding: 10px 14px 14px; min-height: 96px; }
.bs-caption b { display: flex; align-items: baseline; gap: 10px; font: 800 20px/1.1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.bs-caption b span { font: 700 12px/1 var(--mono); color: var(--me); letter-spacing: 0.08em; }
.bs-caption.bad b span { color: var(--enemy); }
.bs-caption p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) {
  .ac-body { grid-template-columns: 1fr; }
  .ac-ranks > div { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ac-head { padding: 26px 0 0; }
  .ac-head h1 { font-size: 44px; }
  .ac-chips { margin-top: 14px; }
  .ac-chips a { font-size: 12.5px; padding: 6px 10px; }
  .ac-group { padding-top: 24px; }
  .ac-group h2 span { font-size: 13px; }
  .ac-tiles { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ink-1); }
  .ac-tile { border: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 11px 14px; gap: 4px; }
  .ac-tile:first-child { border-top: 0; }
  .ac-tile b { font-size: 18px; }
  .ac-tile span { font-size: 13px; }
  .ac-notion { padding-top: 18px; }
  .ac-title h1 { font-size: clamp(32px, 9vw, 44px); }
  .ac-body { gap: 14px; margin-top: 16px; }
  .ac-stage { border-radius: 12px; margin: 0 -8px; }
  .bs-caption { min-height: 118px; padding: 8px 12px 12px; }
  .bs-caption b { font-size: 17px; }
  .bs-caption p, .ac-side li, .ac-box, .ac-ranks p, .ac-usage p { font-size: 14px; }
  .bs-step { padding: 5px 9px; font-size: 10.5px; }
  .ac-bars { gap: 3px; height: 140px; }
  .ac-bars span { font-size: 9.5px; }
  .ac-bars em { font-size: 9.5px; }
  .ac-cta { padding: 16px; margin-top: 30px; }
  .ac-cta b { font-size: 21px; }
  .ac-cta .btn { flex: 1 1 100%; justify-content: center; }
  .ac-ranks, .ac-usage, .ac-related { margin-top: 26px; }
  .ac-related a { font-size: 13px; padding: 7px 11px; }
}

/* the Academy's instructors: each family has its coach, a face and one line per notion */
.ac-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.ac-title > div { flex: 1 1 420px; min-width: 0; }
.ac-coach { flex: 0 1 460px; display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 14px 16px 14px 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--coach) 7%, var(--ink-1)); border: 1px solid color-mix(in srgb, var(--coach) 45%, transparent); }
.ac-coach img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px var(--coach); }
.ac-coach b { display: flex; align-items: baseline; gap: 8px; font: 800 17px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--coach); }
.ac-coach b span { font: italic 500 13px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--text-2); }
.ac-coach p { margin-top: 7px; font-size: 15px; line-height: 1.5; color: var(--text); }
.ac-fam-coach { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 3px; border-radius: 999px; align-self: center;
  border: 1px solid color-mix(in srgb, var(--coach) 45%, transparent); color: var(--coach); font: 700 13px/1 var(--body); text-transform: none; letter-spacing: 0; }
.ac-fam-coach img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: top; }
.bt-face { position: absolute; left: 18px; top: 16px; width: 46px; height: 46px; border-radius: 14px; object-fit: cover; object-position: top;
  box-shadow: 0 0 0 2px #ff7eb6; }
/* the hero: the academy, announced above the title */
.hero-news { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 16px; padding: 5px 14px 5px 5px; border-radius: 999px;
  border: 1px solid rgba(215, 255, 62, 0.45); background: rgba(215, 255, 62, 0.07); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.hero-news b { padding: 4px 10px; border-radius: 999px; background: var(--me); color: var(--ink-0); font: 800 12px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.hero-news i { font-style: normal; color: var(--me); transition: transform 0.2s; }
.hero-news:hover { border-color: var(--me); }
.hero-news:hover i { transform: translateX(3px); }
@media (max-width: 700px) {
  .ac-coach { flex-basis: 100%; padding: 12px; }
  .ac-coach img { width: 52px; height: 52px; border-radius: 13px; }
  .ac-coach p { font-size: 14px; }
  .hero-news { font-size: 12.5px; gap: 8px; margin-bottom: 12px; }
  .hero-news b { font-size: 11px; padding: 3px 8px; }
}

/* Professor Zéphyrin, the Academy's instructor (build_site.zephyrin): breathes, blinks, his lantern-drone hovers and glows */
.zeph-fig { position: relative; flex: 0 0 auto; width: 170px; height: 170px; --lx: 79%; --ly: 48%; }
.zeph-fig.small { width: 64px; height: 64px; }
.zeph-fig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.zeph-rig { position: absolute; inset: 0; transform-origin: 35% 100%; animation: zeph-breathe 4.4s ease-in-out infinite; }
.zeph-blink { opacity: 0; }
.zeph-blink.on { opacity: 1; }
.zeph-drone { transform-origin: var(--lx) var(--ly); animation: zeph-hover 3.4s ease-in-out infinite; }
.zeph-glow { position: absolute; left: var(--lx); top: var(--ly); width: 22%; height: 22%; translate: -50% -50%; border-radius: 50%;
  pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle, rgba(215, 255, 62, 0.75), transparent 70%);
  animation: zeph-hover 3.4s ease-in-out infinite, zeph-lens 2.2s ease-in-out infinite; }
@keyframes zeph-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.018 1.028; } }
@keyframes zeph-hover { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-1.5%, -3.5%) rotate(-4deg); } }
@keyframes zeph-lens { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .zeph-rig, .zeph-drone, .zeph-glow { animation: none; } }
.ac-demo figcaption .zeph-fig { margin: -8px 0 -6px -6px; }
.ac-band { flex-wrap: nowrap; }
.ac-band > div { flex: 1 1 auto; }
.ac-band .zeph-fig { flex: 0 0 170px; margin: -20px 0 -20px -10px; }
.bt-face { box-shadow: 0 0 0 2px #7ee8c8; }
@media (max-width: 700px) {
  .ac-band { flex-wrap: wrap; }
  .ac-band .zeph-fig { width: 120px; height: 120px; margin: -10px auto -10px; }
}
.ac-demo figcaption .zeph-fig { width: 84px; height: 84px; }
.ac-demo figcaption .zeph-fig img { width: 100%; height: 100%; border-radius: 0; box-shadow: none; object-fit: contain; }
.ac-demo figcaption b { color: #7ee8c8; }
.chips li.link { padding: 0; }
.chips li.link a { display: block; padding: 7px 14px 7px 30px; color: inherit; text-decoration: none; border-radius: 999px; }
.chips li.link a i { font-style: normal; color: var(--me); margin-left: 2px; transition: margin 0.2s; }
.chips li.link:hover { border-color: var(--me); background: rgba(215, 255, 62, 0.14); }
.chips li.link:hover a i { margin-left: 6px; }
@media (max-width: 700px) { .chips li.link a { padding: 5px 10px 5px 25px; } }
