:root {
  --paper: #F3F4F6;   /* the lid of a MacBook */
  --ink: #1B1D21;
  --soft: #646A73;
  --line: #DDDFE3;
  --lamp: #FFD60A;    /* the prompter's lamp: only where Budka is listening */
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 19px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2.small { font: 600 1.25rem/1.3 var(--text); letter-spacing: 0; }
p { text-wrap: pretty; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* The page's top edge is the screen's top edge: Budka hangs from it. */
.bar { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; padding: 14px 28px; font-weight: 600; font-size: 16px; }
.bar a { text-decoration: none; margin-left: 22px; }
[hidden] { display: none !important; }  /* .button sets display, which would beat the attribute */
footer a { margin-left: 10px; }
.notch { position: relative; width: min(600px, 100% - 24px); margin: 0 auto; background: #000; color: #fff; border-radius: 0 0 30px 30px; padding: 14px 28px 26px; }
.notch-head { display: flex; align-items: center; gap: 12px; height: 28px; color: rgba(255,255,255,.5); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.notch-head svg { width: 16px; height: 16px; fill: currentColor; }
.bars { display: flex; align-items: center; gap: 3px; height: 16px; }
.bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--lamp); transition: height .12s; }
.script { height: 8.1em; overflow: hidden; margin-top: 10px; font: 600 clamp(19px, 3.3vw, 25px)/1.52 var(--text); }
.script span { color: rgba(255,255,255,.42); transition: color .5s ease-out; }
.script span.said { color: rgba(255,255,255,.2); }
.script span.now { color: #fff; }
.script span.skip { color: rgba(255, 214, 10, .55); }  /* jumped over: the lamp colour, so it can be found again */
/* The text rolls like in the app: one smooth move per line, edges fading out. */
.script > div { position: relative; padding-top: .55em;  /* the first line starts clear of the fading edge */ transition: transform .7s cubic-bezier(.25, .9, .3, 1); }
.script { -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 80%, transparent); }
/* The demo's closing card: the text blurs away and the notch itself offers the app. */
.notch > .notch-head, .script { transition: opacity .5s, filter .5s; }
.ended > .notch-head, .ended > .script { opacity: .14; filter: blur(7px); }
.end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 18px 24px; text-align: center;
  visibility: hidden; opacity: 0; scale: .9; transition: opacity .35s, scale .35s, visibility 0s .35s; }
.ended > .end { visibility: visible; opacity: 1; scale: 1; transition: opacity .45s .2s, scale .6s .2s cubic-bezier(.3, 1.4, .5, 1); }
.end b { font: 500 clamp(1.15rem, 3vw, 1.6rem)/1.2 var(--display); letter-spacing: -0.02em; }
.end span { color: rgba(255,255,255,.62); font-size: 16px; line-height: 1.4; max-width: 23em; }
.end .button { margin-top: 10px; padding: 12px 24px; background: #fff; color: #000; }
.end .button:hover { background: #dfe1e5; }
.end button.again { font: inherit; font-size: 15px; color: rgba(255,255,255,.6); background: none; border: 0; padding: 4px 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.end :focus-visible { outline-color: #fff; }
/* The demo's prompt under the notch; empty and out of sight the rest of the time. */
.state { display: flex; justify-content: center; align-items: center; gap: 10px; height: 2.2em; margin-top: 16px; font-size: 1.05rem; font-weight: 500;
  opacity: 0; translate: 0 -10px; transition: opacity .35s, translate .45s cubic-bezier(.3, 1.3, .5, 1); }
.state.on { opacity: 1; translate: 0 0; }
.state svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.state.on.ask svg { animation: ask 1.1s ease-in-out infinite; }
@keyframes ask { 50% { scale: 1.25; } }

.hero { position: relative; padding-bottom: 96px; }
.hero-text { text-align: center; margin-top: 56px; }
.hero-text p { max-width: 34em; margin: 22px auto 0; color: var(--soft); font-size: 1.15rem; }
.button { display: inline-block; margin: 34px 4px 0; padding: 16px 30px; background: #000; color: #fff; border-radius: 14px; font-weight: 600; text-decoration: none; }
.button:hover { background: #2a2d33; }
button.button { font: inherit; font-weight: 600; border: 0; cursor: pointer; }
.button.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.ghost:hover { background: rgba(0,0,0,.06); }
.note { display: block; margin-top: 14px; color: var(--soft); font-size: 15px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 72px 0; border-top: 1px solid var(--line); }
.three p { margin-top: 10px; color: var(--soft); }

/* The top of a MacBook screen: shows how Budka hides around the notch and opens under the cursor. */
.hide { text-align: center; padding-bottom: 88px; }
.hide > p { max-width: 32em; margin: 18px auto 44px; color: var(--soft); }
.lid { --open: min(440px, 88%); container-type: inline-size; position: relative; height: 380px; border: 12px solid #000; border-bottom: 0; border-radius: 28px 28px 0 0; overflow: hidden; text-align: left;
  background: radial-gradient(110% 90% at 15% 0%, #8DB9EC 0, transparent 60%), radial-gradient(90% 90% at 90% 35%, #CDB0EA 0, transparent 62%), linear-gradient(#5E92D8, #EBC2CC);
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.menubar { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 18px; color: #fff; font: 500 13.5px/1 var(--text); background: rgba(0,0,0,.14); }
.menubar span { display: flex; gap: 18px; align-items: center; }
.menubar b { font-weight: 600; }
.menubar i { font-style: normal; }
.menubar .batt { width: 24px; height: 11px; border: 1.5px solid #fff; border-radius: 3.5px; padding: 1px; opacity: .9; }
.menubar .batt::after { content: ""; display: block; width: 70%; height: 100%; background: #fff; border-radius: 1.5px; }
.bud { position: absolute; top: 0; left: 50%; translate: -50% 0; width: 214px; height: 36px; background: #000; border-radius: 0 0 14px 14px; overflow: hidden; color: #fff; animation: bud 10s infinite; }
.bud::before { content: ""; position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 9px; height: 9px; border-radius: 50%; background: #1d2430; box-shadow: inset 0 0 0 2px #0c0f14; }
.bud-in { position: absolute; top: 34px; left: 50%; translate: -50% 0; width: 440px; max-width: 88cqw; padding: 6px 26px; opacity: 0; animation: bud-in 10s infinite; }
.bud-in p { font: 600 19px/1.55 var(--text); color: rgba(255,255,255,.42); margin-top: 8px; }
.bud-in p b { font-weight: 600; color: #fff; }
.pointer { position: absolute; top: 0; left: 50%; width: 22px; height: 22px; translate: 150px 250px; animation: pointer 10s infinite; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
@keyframes bud {
  0%, 17% { width: 214px; height: 36px; border-radius: 0 0 14px 14px; animation-timing-function: cubic-bezier(.3, 1.35, .5, 1); }
  25%, 66% { width: var(--open); height: 212px; border-radius: 0 0 28px 28px; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  74%, 100% { width: 214px; height: 36px; border-radius: 0 0 14px 14px; }
}
@keyframes bud-in { 0%, 19% { opacity: 0; } 25%, 64% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes pointer {
  0%, 4% { translate: 150px 250px; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  16%, 56% { translate: 46px 14px; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  68%, 100% { translate: 150px 250px; }
}

.call { background: #000; color: #fff; border-radius: 36px; padding: clamp(28px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.call > div > p { margin-top: 18px; color: rgba(255,255,255,.62); max-width: 26em; }
.blocks { background: #111316; border-radius: 24px; padding: 18px 22px 22px; min-height: 380px; }
.blocks-head { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.5); font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.blocks button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.blocks :focus-visible { outline-color: #fff; }
#all { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
#all:hover { background: rgba(255,255,255,.1); }
#all svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.block > button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 0; font-weight: 600; font-size: 21px; color: rgba(255,255,255,.75); }
.block > button::before { content: ""; width: 8px; height: 8px; margin-left: 4px; border: solid rgba(255,255,255,.45); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .2s; flex: none; }
.block.open > button { color: #fff; }
.block.open > button::before { transform: rotate(45deg); }
.block > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s; }
.block.open > div { grid-template-rows: 1fr; }
.block > div > p { overflow: hidden; padding-left: 28px; color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.5; }
.block.open > div > p { padding-bottom: 10px; }

.agent { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 96px 0; }
.agent p { margin-top: 18px; color: var(--soft); max-width: 26em; }
pre { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; font: 500 14.5px/1.7 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--soft); }

.get { text-align: center; padding: 104px 0 88px; }
.get img { width: 112px; height: 112px; border-radius: 26px; }
.get h2 { margin-top: 26px; }
footer { text-align: center; color: var(--soft); font-size: 15px; padding-bottom: 40px; }

/* The article page: one narrow column of text. */
.article { width: min(720px, 100% - 40px); margin-inline: auto; padding-top: 40px; }
.crumbs { font-size: 16px; font-weight: 600; margin-bottom: 72px; }
.crumbs a { text-decoration: none; }
.crumbs span { color: var(--soft); font-weight: 400; }
.crumbs span::before { content: "/"; margin: 0 10px; color: var(--line); }
.article h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.article h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-top: 68px; }
.article p, .article ul, .article pre, .article .facts { margin-top: 18px; }
.article .lead { margin-top: 26px; color: var(--soft); font-size: 1.15rem; }
.article ul { padding-left: 1.2em; }
.article li + li { margin-top: 10px; }
.article code { font: 500 .88em ui-monospace, "SF Mono", Menlo, monospace; }
.article .facts { margin-top: 26px; }
.pic { display: block; width: 100%; height: auto; margin-top: 26px; }  /* drawn on the page's own paper colour, so no frame */
.article .get h2 { margin-top: 26px; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.article .get .note { margin-top: 14px; }

@media (max-width: 800px) {
  body { font-size: 18px; }
  .bar { display: none; }
  .three, .call, .agent { grid-template-columns: 1fr; gap: 32px; }
  .three { padding: 56px 0; }
  .agent { padding: 64px 0; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .blocks { min-height: 0; }
}
@media (max-width: 800px) { .menubar .wide { display: none; } .lid { height: 340px; border-width: 9px; } .bud-in { padding-inline: 18px; } .bud-in p { font-size: 15.5px; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .bud { animation: none; width: var(--open); height: 212px; border-radius: 0 0 28px 28px; }
  .bud-in { animation: none; opacity: 1; }
  .pointer { animation: none; translate: 46px 14px; }
}
