/* pocket desiigner demo: a clickable, phone-first walk-through of the studio, using alfa concept's brand and Mario. */
:root {
  --ink: #0d283a;
  --tetsu: #334a5a;
  --soda: #44b5b0;
  --fuji: #03938d;
  --soda-tint: #d3eeec;
  --washi: #f2f1ef;
  --stone: #dbd9d8;
  --neon: #deebaa;
  --plum: #c54d7f;
  --muted: color-mix(in srgb, var(--ink) 62%, var(--washi));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  /* alfa */
  --azure: #25a5de;
  --blue: #64c5ec;
  --latte: #e6dcce;
  --cream: #eae7e3;
  --ivory: #f7f5ef;
  --radius: 12px;
  --ease: cubic-bezier(0.43, 0.05, 0.17, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gill: "Gill Sans", "Gill Sans MT", "Barlow", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--washi);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ------- page around the phone ------- */
.topline {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
}
.topline .back { text-decoration: none; font-weight: 500; font-size: 14px; }
.topline .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--neon); }
.stage {
  min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 400px) auto; gap: clamp(40px, 7vw, 110px);
  align-items: center; justify-content: center;
  padding: 80px 28px 40px;
}
.intro .wordmark { width: 150px; height: auto; color: var(--soda); }
.intro h1 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; line-height: 1.05; margin: 22px 0 14px; letter-spacing: -0.01em; }
.intro p { color: var(--muted); line-height: 1.6; margin: 0 0 22px; }
.progress { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.progress > li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
/* the step just done opens a short note on what it is and why it helps */
.progress .why { grid-column: 2; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.4s var(--ease), opacity 0.3s; }
.progress .why > ul { overflow: hidden; min-height: 0; margin: 0; padding: 0 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.progress .why li { margin-top: 4px; }
.progress .why li::marker { color: var(--soda); }
.progress > li.open .why { grid-template-rows: 1fr; opacity: 1; }
.progress > li.open .why > ul { padding-bottom: 6px; }
.progress > li::before {
  content: counter(s); width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: #fff; color: var(--ink); transition: background 0.3s, color 0.3s;
}
.progress > li.done { color: var(--ink); }
.progress > li.done::before { content: "✓"; background: var(--soda); color: #fff; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--ink); color: var(--neon); padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: 15px;
}
.cta .dot, .btn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ------- the phone ------- */
.device {
  width: 390px; height: min(820px, calc(100dvh - 120px)); min-height: 640px;
  border-radius: 54px; padding: 12px; background: var(--ink);
  box-shadow: 0 40px 80px -40px rgb(13 40 58 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
}
.app {
  position: relative; width: 100%; height: 100%; overflow: hidden; overflow: clip;
  border-radius: 43px; background: var(--washi);
  isolation: isolate;
}
.status {
  position: absolute; inset: 0 0 auto 0; height: 46px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0;
  font-size: 14px; font-weight: 600; pointer-events: none;
}
.status .island { width: 110px; height: 30px; border-radius: 20px; background: #000; }
.status .bars { display: flex; gap: 3px; align-items: flex-end; }
.status .bars i { width: 4px; background: currentColor; border-radius: 1px; }
.status .bars i:nth-child(1) { height: 6px; } .status .bars i:nth-child(2) { height: 9px; } .status .bars i:nth-child(3) { height: 12px; }

/* ------- screens ------- */
.screen {
  position: absolute; inset: 0; padding-top: 46px;
  display: flex; flex-direction: column;
  background: var(--washi);
  opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: opacity 0.32s var(--ease), transform 0.42s var(--ease), visibility 0s 0.42s;
}
.screen.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.32s var(--ease), transform 0.42s var(--ease); }
.screen.is-back { transform: translateX(-24px); }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; min-height: 56px;
}
.bar > b { font-size: 15px; font-weight: 600; }
.bar .brand { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.bar .who { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.bar .who img { width: 32px; height: 32px; border-radius: 50%; background: #fff; object-fit: cover; }
.bar .spacer { width: 36px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; font-size: 17px; display: grid; place-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--azure); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.muted { color: var(--muted); }
.eyebrow, .t-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soda); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none;
  transition: transform 0.2s var(--pop), opacity 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn-ink { background: var(--ink); color: var(--neon); }
.btn-soft { background: #fff; color: var(--ink); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn[disabled], .chip[disabled] { opacity: 0.45; pointer-events: none; }

/* alfa marks drawn from the real logo files */
.alfa-mark { width: 22px; height: 22px; background: var(--blue); -webkit-mask: url(/assets/clients/alfa-mark.svg) center / contain no-repeat; mask: url(/assets/clients/alfa-mark.svg) center / contain no-repeat; }
.alfa-logo { display: block; width: 74px; aspect-ratio: 296 / 444; background: #fff; -webkit-mask: url(/assets/clients/alfa-logo.svg) center / contain no-repeat; mask: url(/assets/clients/alfa-logo.svg) center / contain no-repeat; }
.alfa-logo.blue { background: var(--blue); }

/* sign in */
.signin { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 28px 40px; }
.exit { position: absolute; top: calc(env(safe-area-inset-top) + 16px); left: 20px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--muted); }
.signin .pd { width: 140px; color: var(--soda); margin-bottom: 34px; }
.signin h2 { font-size: 28px; font-weight: 600; margin: 0 0 4px; }
.signin .muted { margin: 0 0 26px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 12px; font-weight: 500; color: var(--muted); }
.field input { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 0; border-radius: var(--radius); padding: 14px 16px; outline: none; pointer-events: none; }
.signin .btn { margin-top: 10px; width: 100%; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }

/* home */
.home { padding: 6px 16px 28px; display: grid; gap: 12px; align-content: start; }
.hello { display: flex; align-items: center; gap: 12px; padding: 4px 0 8px; }
.hello img { width: 96px; height: 96px; flex: none; }
.hello h2 { margin: 2px 0 2px; font-size: 24px; font-weight: 600; }
.hello .muted { margin: 0; font-size: 14px; }
.tile {
  position: relative; display: grid; gap: 4px; text-align: left; width: 100%;
  background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 10px 24px -20px rgb(13 40 58 / 0.4);
  transition: transform 0.2s var(--pop);
}
button.tile:active { transform: scale(0.98); }
.tile b { font-size: 19px; font-weight: 600; }
.tile > span:not(.t-eyebrow):not(.arrow):not(.hub-copy):not(.hub-cover) { font-size: 13px; color: var(--muted); line-height: 1.45; }
.tile-ink { background: var(--ink); color: var(--washi); padding: 20px 56px 20px 20px; }
.tile-ink > span:not(.t-eyebrow):not(.arrow) { color: color-mix(in srgb, var(--washi) 72%, transparent); }
.tile-ink .t-eyebrow { color: var(--neon); }
.tile-ink .arrow { position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; background: var(--neon); color: var(--ink); display: grid; place-items: center; font-size: 18px; }
.tile-hub { grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px; }
.hub-cover { height: 92px; border-radius: 14px; background: var(--azure); display: grid; place-items: center; }
.hub-cover .alfa-logo { width: 38px; }
.hub-copy { display: grid; gap: 4px; }
.hub-copy span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile-soft { box-shadow: none; background: color-mix(in srgb, #fff 70%, transparent); }
.tile .big { font-size: 30px; line-height: 1.1; }
.tile .big small { font-size: 15px; color: var(--muted); font-weight: 500; }

/* brand hub: the real hub's frame (miio design lab's Poppins, ink and fuji, hairlines, square corners on a warm grey
   ground, section bars with their number in teal); alfa's look lives only in what each page shows */
#s-hub { --ground: #ecebe9; --band: #e2e0de; --rule: rgb(13 40 58 / 0.16); --gap: 20px; background: var(--ground); }
#s-hub > .bar { border-bottom: 1px solid var(--rule); }
.bh { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bh-side { display: flex; gap: 0; padding: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rule); flex: none; }
.bh-side::-webkit-scrollbar { display: none; }
.bh-side button { display: flex; align-items: baseline; gap: 8px; padding: 6px 12px; white-space: nowrap; font-size: 14px; color: var(--muted); }
.bh-side button small { font-size: 11px; color: var(--muted); }
.bh-side button[aria-current="page"] { color: var(--ink); font-weight: 500; }
.bh-side button[aria-current="page"] small { color: var(--fuji); }
.bh-main { flex: 1; }
.bh-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--gap); border-bottom: 1px solid var(--rule); font-size: 12.5px; }
.bh-top .crumb { color: var(--muted); }
.pager { display: inline-flex; align-items: center; gap: 6px; }
.pager small { font-size: 12px; color: var(--fuji); margin-right: 6px; }
.pager button { width: 28px; height: 28px; border-radius: 50%; font-size: 17px; line-height: 1; background: rgb(13 40 58 / 0.06); }
.pager button:disabled { opacity: 0.35; cursor: default; }
.bh-page { display: none; }
.bh-page.is-on { display: block; animation: rise 0.3s var(--ease) both; }
.bh-page > * { border-bottom: 1px solid var(--rule); }
.lbl { font-size: 12px; color: #44b5b0; }
.lbl2 { font-size: 12.5px; color: var(--muted); }
.bh-cover { background: #25a5de; color: #fff; padding: 30px var(--gap) 36px; display: grid; gap: 22px; }
.bh-cover h2 { margin: 6px 0 0; font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; }
.bh-cover dl { margin: 0; display: grid; gap: 16px; }
.bh-cover dd { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }
.bh-head { border-bottom: 0; }
.bh-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gap); background: var(--band); border-bottom: 1px solid var(--rule); }
.bh-bar h3 { margin: 0; font-size: 14px; font-weight: 500; color: var(--fuji); }
.bh-bar small { font-size: 13px; color: var(--fuji); }
.bh-index { display: grid; margin: 16px var(--gap) 0; padding: 4px 0 16px; border-top: 1px solid var(--ink); }
.bh-index button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); font-size: 14px; text-align: left; }
.bh-index svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fold-head { width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 18px var(--gap); text-align: left; font-size: 17px; font-weight: 500; }
.fold-head span { flex: 1; }
.fold-head i { font-style: normal; font-weight: 300; font-size: 22px; line-height: 1; color: var(--fuji); width: 22px; text-align: center; }
.fold > p { display: none; margin: 0; padding: var(--gap); border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 82%, var(--stone)); }
.fold[data-open] > p { display: block; }
.bh-logo { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.bh-logo .alfa-logo { width: 64px; }
.bh-logo small { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: #fff; opacity: 0.7; }
.bh-spec { display: grid; gap: 12px; padding: var(--gap); }
.bh-spec + .bh-spec { border-top: 1px solid var(--rule); }
.bh-spec .aa { margin-top: 12px; font-size: 110px; line-height: 0.95; font-weight: 500; }
.bh-spec strong { font-size: 26px; font-weight: 400; }
.bh-spec p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.gill { font-family: var(--gill); }
.barlow { font-family: "Barlow", sans-serif; }
.sw + .sw { border-top: 1px solid var(--rule); }
.chip-c { min-height: 150px; padding: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.chip-c strong { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.chip-c small { font-size: 13px; opacity: 0.85; }
.sw > p { margin: 0; padding: 16px 20px 20px; font-size: 13.5px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--rule); }
.bh-prose h4 { margin: 0; padding: var(--gap); font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--rule); }
.bh-prose p { margin: 0; padding: var(--gap); font-size: 14.5px; line-height: 1.65; color: color-mix(in srgb, var(--ink) 82%, var(--stone)); }
.bh-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.bh-pics img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
/* the wide shot keeps its own shape across the row, so nothing gets cut */
.bh-pics img.wide { grid-column: 1 / -1; aspect-ratio: auto; }

/* chat */
.thread { padding: 8px 14px 24px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 8px; align-items: flex-end; animation: rise 0.38s var(--ease) both; }
.msg .face { width: 30px; height: 30px; border-radius: 50%; background: #fff; flex: none; object-fit: cover; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; background: #fff; }
.from-pd .bubble { border-bottom-left-radius: 6px; }
.from-you { justify-content: flex-end; }
.from-you .bubble { background: var(--ink); color: var(--washi); border-bottom-right-radius: 6px; }
.from-you .bubble img { border-radius: 12px; margin-top: 8px; max-height: 190px; width: auto; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.prompts { display: grid; gap: 10px; padding-left: 38px; }
.prompt {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; text-align: left;
  background: #fff; border-radius: 16px; padding: 10px 12px 10px 10px; transition: transform 0.2s var(--pop);
  animation: rise 0.4s var(--ease) both;
}
.prompt:active { transform: scale(0.98); }
.prompt .pic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: color-mix(in srgb, var(--soda) 22%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--soda) 45%, transparent); }
.prompt .pic svg { width: 20px; height: 20px; }
.prompt b { display: block; font-size: 14px; font-weight: 600; }
.prompt span span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.prompt .state { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--washi); font-size: 13px; }
.prompt.done .state { background: var(--soda); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 38px; animation: rise 0.38s var(--ease) both; }
.chip { padding: 9px 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 0 0 1.5px var(--line) inset; transition: transform 0.2s var(--pop), background 0.2s; }
.chip:active { transform: scale(0.96); }
.chip.picked { background: var(--ink); color: var(--neon); box-shadow: none; }

.card { margin-left: 38px; background: #fff; border-radius: 18px; padding: 14px; display: grid; gap: 10px; animation: rise 0.4s var(--ease) both; font-size: 13px; }
.card h4 { margin: 0; font-size: 15px; font-weight: 600; }
.card .eyebrow { margin-bottom: -4px; }
.spec { display: grid; grid-template-columns: 74px 1fr; gap: 6px 10px; margin: 0; }
.spec dt { color: var(--muted); font-size: 12px; }
.spec dd { margin: 0; line-height: 1.45; }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08) inset; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn { min-height: 40px; font-size: 14px; padding: 0 16px; }
.actions .btn-soft { box-shadow: 0 0 0 1.5px var(--line) inset; }
.design { border-radius: 12px; overflow: hidden; background: var(--washi); position: relative; }
.design img { width: 100%; }
.design .badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.9); }
.design .badge.final { background: var(--soda); color: #fff; }

.working { margin-left: 38px; background: #fff; border-radius: 18px; padding: 14px; display: grid; gap: 8px; font-size: 13px; animation: rise 0.4s var(--ease) both; }
.working .track { height: 6px; border-radius: 6px; background: var(--washi); overflow: hidden; }
.working .track i { display: block; height: 100%; width: 0; background: var(--soda); border-radius: 6px; transition: width 0.5s var(--ease); }
.working ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.working li { color: var(--muted); opacity: 0.4; transition: opacity 0.3s; }
.working li.on { opacity: 1; }
.working li.on::before { content: "✓ "; color: var(--fuji); }

.found { margin: 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.45; }
.cal { width: 100%; border-collapse: collapse; font-size: 12px; }
.cal th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; padding: 0 6px 6px 0; }
.cal td { padding: 7px 6px 7px 0; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.35; }
.cal td:first-child { white-space: nowrap; font-weight: 600; }
.cal .ch { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--soda-tint); color: var(--fuji); white-space: nowrap; }
.cal .ch.store { background: #f1e6d5; color: #8a6a3a; }
.cal .ch.rn { background: #f6dde7; color: var(--plum); }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phases div { border-radius: 12px; padding: 10px; background: var(--washi); display: grid; gap: 2px; }
.phases div:nth-child(2) { background: #e6efcf; }
.phases b { font-size: 13px; }
.phases span { font-size: 11px; color: var(--muted); line-height: 1.35; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.checks li::before { content: "○ "; color: var(--soda); }
.form { display: grid; gap: 8px; }
.form label { display: grid; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 500; }
.form label span { font-size: 13px; color: var(--ink); background: var(--washi); border-radius: 10px; padding: 9px 11px; font-weight: 400; }

.all-done { margin: 6px 0 0 38px; background: var(--ink); color: var(--washi); border-radius: 18px; padding: 18px; display: grid; gap: 10px; animation: rise 0.4s var(--ease) both; }
.all-done b { font-size: 18px; }
.all-done p { margin: 0; font-size: 13px; color: color-mix(in srgb, var(--washi) 75%, transparent); }
.all-done .btn-ink { background: var(--neon); color: var(--ink); }
.all-done[hidden] { display: none; }

.composer { margin: 0 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; font-size: 13px; color: var(--muted); }
.composer i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--washi); color: var(--muted); }

/* toast */
.toast { position: absolute; left: 50%; bottom: 84px; z-index: 6; translate: -50% 12px; opacity: 0; pointer-events: none; background: var(--ink); color: var(--neon); font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: 18px; width: max-content; max-width: calc(100% - 40px); text-align: center; line-height: 1.4; transition: opacity 0.25s, translate 0.35s var(--pop); }
.toast.on { opacity: 1; translate: -50% 0; }

/* the idle hint: a ring on what to tap, and a small label with an arrow */
.ring { position: absolute; z-index: 7; pointer-events: none; border-radius: 16px; box-shadow: 0 0 0 3px var(--plum); opacity: 0; transition: opacity 0.25s; }
.ring.on { opacity: 1; animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 3px var(--plum), 0 0 0 3px rgb(197 77 127 / 0.45); } 100% { box-shadow: 0 0 0 3px var(--plum), 0 0 0 14px rgb(197 77 127 / 0); } }
.hint {
  position: absolute; z-index: 8; pointer-events: none;
  background: var(--plum); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 24px -10px rgb(197 77 127 / 0.6);
  opacity: 0; transform: translateY(var(--dy, 6px)) scale(0.92); transition: opacity 0.22s, transform 0.35s var(--pop);
}
.hint.on { opacity: 1; transform: none; animation: bob 1.4s var(--ease) 0.35s infinite; }
@keyframes bob { 50% { translate: 0 var(--bob, -4px); } }
.hint .tip { position: absolute; left: var(--ax, 50%); width: 12px; height: 12px; background: var(--plum); border-radius: 2px; rotate: 45deg; translate: -50% 0; }
.hint[data-side="below"] .tip { top: -5px; }
.hint[data-side="above"] .tip { bottom: -5px; }
.hint[data-side="below"] { --bob: 4px; --dy: -6px; }

/* ------- phones: the app is the page ------- */
@media (max-width: 760px) {
  .intro { display: none; }
  .stage { display: block; padding: 0; min-height: 0; }
  .topline { position: static; padding: 0; }
  .topline { display: none; }
  .device { width: 100%; height: 100dvh; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .app { border-radius: 0; }
  .status { display: none; }
  .screen { padding-top: env(safe-area-inset-top); }
  .composer { margin-bottom: max(14px, env(safe-area-inset-bottom)); }
  .exit { display: inline-flex; }
}
@media (min-width: 761px) { .exit { display: none; } }
@media (min-width: 761px) and (max-height: 760px) {
  .device { height: calc(100dvh - 90px); min-height: 560px; }
  .stage { padding-top: 64px; padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.phases em { display: block; font-style: normal; font-weight: 600; color: var(--ink); white-space: nowrap; margin-bottom: 2px; }

/* the cover's labels: teal doesn't read on alfa's azure, so they take the cover's text colour, softened (as the real hub now does) */
.bh-cover .lbl { color: #fff; opacity: 0.62; }

/* logo versions */
.bh-block { margin: 0; padding: 14px var(--gap); background: var(--band); font-size: 14px; font-weight: 500; color: var(--fuji); }
.bh-versions { display: grid; grid-template-columns: 1fr 1fr; }
.bh-versions figure { margin: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bh-versions figure:nth-child(2n) { border-right: 0; }
.bh-versions .v { aspect-ratio: 3 / 2; display: grid; place-items: center; }
.bh-versions .alfa-logo { width: 34px; }
.bh-versions figcaption { padding: 8px 12px 10px; font-size: 11.5px; color: var(--muted); }
.alfa-mark.big { width: 44px; height: 44px; }
.alfa-mark.white { background: #fff; }
.alfa-mark.grey { background: #8e8a84; }

/* layout: each size's style card, with margin and type-size sliders */
.bh-note { margin: 0; padding: 16px var(--gap); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.bh-lay { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.lay-card { padding: 14px; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--rule); --m: 8%; --t: 1; }
.lay-card:nth-child(2n), .lay-card:only-child { border-right: 0; }
.bh-lay:has(.lay-card:only-child) { grid-template-columns: minmax(0, 0.5fr); }
.lay { position: relative; width: 100%; background: #f7f5ef; overflow: hidden; container-type: inline-size; box-shadow: 0 1px 2px rgb(13 40 58 / 0.08); }
.lay .z { position: absolute; transition: left 0.2s, right 0.2s, top 0.2s, bottom 0.2s; }
.lay .photo { background: linear-gradient(160deg, #e9dcc8, #d8c3a5); }
.lay .photo.round { border-radius: 50%; background: radial-gradient(circle at 40% 35%, #dbe9a7, #9fbe5a); }
.lay-card:nth-child(2) .lay .photo { background: linear-gradient(180deg, #3a3633, #6d675f 55%, #e8e3da); }
.lay .eye { font: 600 calc(3.4cqw * var(--t)) / 1 "Barlow", sans-serif; letter-spacing: 0.14em; color: #25a5de; }
.lay .head { font: 400 calc(9cqw * var(--t)) / 1.05 var(--gill); color: #3b3a38; }
.lay .body { font: 400 calc(3.6cqw * var(--t)) / 1.3 "Barlow", sans-serif; color: #6b6965; }
.lay .light { color: #f7f5ef; }
.lay .eye.light { color: #64c5ec; }
.lay .mark { width: 9cqw; height: 9cqw; background: #64c5ec; -webkit-mask: url(/assets/clients/alfa-mark.svg) center / contain no-repeat; mask: url(/assets/clients/alfa-mark.svg) center / contain no-repeat; }
.lay .mark.white { background: #fff; }
.lay-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.lay-meta b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--ink); color: var(--neon); }
.lay-sl { display: grid; gap: 4px; font-size: 11.5px; color: var(--muted); }
.lay-sl span { display: flex; justify-content: space-between; }
.lay-sl em { font-style: normal; color: var(--fuji); }
.lay-sl input { width: 100%; accent-color: var(--fuji); margin: 0; }

/* tools */
.fold > .fold-body { display: none; padding: var(--gap); border-top: 1px solid var(--rule); gap: 12px; }
.fold[data-open] > .fold-body { display: grid; }
.t-note { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
#pat { width: 100%; aspect-ratio: 1; border-radius: 10px; display: block; }
.t-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t-row .sw-btn { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.t-row .sw-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fuji); }
.t-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.t-actions .btn-soft { box-shadow: inset 0 0 0 1.5px var(--line); }
.t-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-self: start; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(13 40 58 / 0.12); }
.t-seg button { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.t-seg button[aria-pressed="true"] { color: #fff; background: var(--fuji); }
.illo-stage { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #f6f3ee; box-shadow: inset 0 0 0 1px var(--rule); }
.illo-stage[data-checker] { background: repeating-conic-gradient(#efedea 0% 25%, #f8f7f5 0% 50%) 0 0 / 22px 22px; }
.illo-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.illo-stage[data-checker] img { object-fit: contain; mix-blend-mode: multiply; }
.illo-stage[aria-busy="true"] img { opacity: 0.4; }
.illo-busy { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #fff; background: var(--ink); white-space: nowrap; }
.illo-tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgb(255 255 255 / 0.9); }
.illo-family img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; background: #dcdcdc; }
.illo-family span { font-size: 12px; color: var(--muted); }
.illo-ref { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
.illo-ref img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; }
.illo-ref b { display: block; font-size: 13px; font-weight: 500; }
.illo-ref em { font-style: normal; font-size: 12px; color: var(--fuji); }

/* share the hub's living link */
.share { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--fuji); background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fuji) 30%, transparent); }
.share svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bh-top .crumb { margin-right: auto; }
.bh-top .share { margin-right: 4px; }
.hub-card { border-radius: 20px; background: #fff; box-shadow: 0 10px 24px -20px rgb(13 40 58 / 0.4); }
.hub-card .tile-hub { box-shadow: none; background: none; }
.hub-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.hub-foot small { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.hub-foot .share { flex: none; }

/* save a logo */
.save-logo { padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--ink); background: rgb(255 255 255 / 0.92); box-shadow: 0 1px 2px rgb(13 40 58 / 0.12); }
.bh-logo .save-logo { position: absolute; right: 14px; bottom: 12px; }
.bh-versions figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.bh-versions figcaption .save-logo { box-shadow: inset 0 0 0 1px var(--rule); background: #fff; padding: 4px 9px; }

/* settings under the counts */
.settings { display: grid; gap: 0; padding: 14px 16px 6px; border-radius: 20px; background: color-mix(in srgb, #fff 70%, transparent); }
.settings .t-eyebrow { margin-bottom: 6px; }
.settings button { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; text-align: left; border-top: 1px solid var(--line); }
.settings button:first-of-type { border-top: 0; }
.settings .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--soda) 22%, #fff); }
.settings .ic svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.settings b { display: block; font-size: 14px; font-weight: 600; }
.settings small { font-size: 12px; color: var(--muted); }
.settings i { font-style: normal; font-size: 20px; color: var(--muted); }
.bar .pd-small { width: 72px; height: auto; display: block; }
